Commit 5a66d45d authored by lihailei's avatar lihailei

update NewJSONClient.

parent 4a8702f0
......@@ -45,7 +45,7 @@ func (c *RpcCtx) SetResultCb(cb Callback) {
}
func (c *RpcCtx) Run() {
rpc, err := jsonrpc.NewJsonClient(c.Addr)
rpc, err := jsonrpc.NewJSONClient(c.Addr)
if err != nil {
fmt.Fprintln(os.Stderr, err)
return
......@@ -78,7 +78,7 @@ func (c *RpcCtx) Run() {
fmt.Println(string(data))
}
func (c *RpcCtx) ResponData() ([]byte, error) {
rpc, err := jsonrpc.NewJsonClient(c.Addr)
rpc, err := jsonrpc.NewJSONClient(c.Addr)
if err != nil {
fmt.Fprintln(os.Stderr, err)
return nil, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment