Skip to content

Commit

Permalink
Clarify that Spec belongs to Batch.
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Sep 10, 2021
1 parent 2230e9a commit dfac3b1
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 @@ -347,8 +347,9 @@ func (c *Client) Batch(ctx context.Context, specs []Spec) ([]*Response, error) {
return rsps, nil
}

// A Spec combines a method name and parameter value. If the Notify field is
// true, the spec is sent as a notification instead of a request.
// A Spec combines a method name and parameter value as part of a Batch. If
// the Notify field is true, the request is sent as a notification instead of a
// request.
type Spec struct {
Method string
Params interface{}
Expand Down

0 comments on commit dfac3b1

Please sign in to comment.