From 4cf58de9bb7b109dddbc80adefe52cdf61328d0d Mon Sep 17 00:00:00 2001
From: Alexander Kiryukhin <a.kiryukhin@mail.ru>
Date: Mon, 31 Jan 2022 20:17:31 +0300
Subject: Small refactoring

---
 examples/http/main.go | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'examples')

diff --git a/examples/http/main.go b/examples/http/main.go
index 730fc03..5783c05 100644
--- a/examples/http/main.go
+++ b/examples/http/main.go
@@ -5,13 +5,15 @@ import (
 	"errors"
 	"net/http"
 
-	"github.com/neonxp/jsonrpc2"
+	httpRPC "github.com/neonxp/jsonrpc2/http"
+	"github.com/neonxp/jsonrpc2/rpc"
 )
 
 func main() {
-	s := jsonrpc2.New()
-	s.Register("multiply", jsonrpc2.Wrap(Multiply))
-	s.Register("divide", jsonrpc2.Wrap(Divide))
+	s := httpRPC.New()
+
+	s.Register("multiply", rpc.Wrap(Multiply))
+	s.Register("divide", rpc.Wrap(Divide))
 
 	http.ListenAndServe(":8000", s)
 }
-- 
cgit v1.2.3