Skip to content

Commit

Permalink
Merge 5c155bf into dc37adc
Browse files Browse the repository at this point in the history
  • Loading branch information
trey-jones committed Dec 20, 2017
2 parents dc37adc + 5c155bf commit 58336df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsonrpc2/client.go
Expand Up @@ -34,8 +34,8 @@ type clientCodec struct {
pending map[uint64]string // map request id to method name
}

// newClientCodec returns a new rpc.ClientCodec using JSON-RPC 2.0 on conn.
func newClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec {
// NewClientCodec returns a new rpc.ClientCodec using JSON-RPC 2.0 on conn.
func NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec {
return &clientCodec{
dec: json.NewDecoder(conn),
enc: json.NewEncoder(conn),
Expand Down Expand Up @@ -239,7 +239,7 @@ func (c Client) Notify(serviceMethod string, args interface{}) error {
// NewClient returns a new Client to handle requests to the
// set of services at the other end of the connection.
func NewClient(conn io.ReadWriteCloser) *Client {
codec := newClientCodec(conn)
codec := NewClientCodec(conn)
client := rpc.NewClientWithCodec(codec)
return &Client{client, codec.(*clientCodec)}
}
Expand Down

0 comments on commit 58336df

Please sign in to comment.