Skip to content

Commit

Permalink
Clarify the documentation of Client.Batch.
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Aug 21, 2021
1 parent 0e3133c commit cc4a10e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,9 @@ func (c *Client) CallResult(ctx context.Context, method string, params, result i
// responses return. The responses are returned in the same order as the
// original specs, omitting notifications.
//
// Any error returned is from sending the batch; the caller must check each
// response for errors from the server.
// Any error reported by Batch represents an error in encoding or sending the
// batch to the server. Errors reported by the server in response to requests
// must be recovered from the responses.
func (c *Client) Batch(ctx context.Context, specs []Spec) ([]*Response, error) {
reqs := make(jmessages, len(specs))
for i, spec := range specs {
Expand Down

0 comments on commit cc4a10e

Please sign in to comment.