Move json/cbor rpc to lib

This commit is contained in:
Łukasz Magiera
2019-07-08 13:02:02 +02:00
parent f06d874a8a
commit 4ef4721820
8 changed files with 36 additions and 33 deletions
+2 -2
View File
@@ -2,12 +2,12 @@ package client
import (
"github.com/filecoin-project/go-lotus/api"
"github.com/filecoin-project/go-lotus/jsonrpc"
"github.com/filecoin-project/go-lotus/lib"
)
// NewRPC creates a new http jsonrpc client.
func NewRPC(addr string) api.API {
var res api.Struct
jsonrpc.NewClient(addr, "Filecoin", &res.Internal)
lib.NewClient(addr, "Filecoin", &res.Internal)
return &res
}