Skip to content

Commit

Permalink
Merge branch 'release/13.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSLevy committed Nov 20, 2019
2 parents ab57092 + 13b2bce commit c1f0776
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -17,7 +17,7 @@ Client.Request.
var c jsonrpc2.Client
params := []float64{1, 2, 3}
var result int
err := c.Request(nil, "http://localhost:8080", params, &result)
err := c.Request(nil, "http://localhost:8080", "sum", params, &result)
if _, ok := err.(jsonrpc2.Error); ok {
// received Error Request
}
Expand Down
4 changes: 2 additions & 2 deletions client.go
Expand Up @@ -73,8 +73,8 @@ type Client struct {
//
// If c.DebugRequest is true then the Request and Response are printed using
// c.Log. If c.Log == nil, then c.Log = log.New(os.Stderr, "", 0).
func (c *Client) Request(
ctx context.Context, url, method string, params, result interface{}) error {
func (c *Client) Request(ctx context.Context, url, method string,
params, result interface{}) error {
// Generate a random ID for this request.
reqID := rand.Int()%5000 + 1

Expand Down
2 changes: 1 addition & 1 deletion doc.go
Expand Up @@ -31,7 +31,7 @@
// var c jsonrpc2.Client
// params := []float64{1, 2, 3}
// var result int
// err := c.Request(nil, "http://localhost:8080", params, &result)
// err := c.Request(nil, "http://localhost:8080", "sum", params, &result)
// if _, ok := err.(jsonrpc2.Error); ok {
// // received Error Request
// }
Expand Down

0 comments on commit c1f0776

Please sign in to comment.