Skip to content

Commit

Permalink
rpc: fix godoc (#24488)
Browse files Browse the repository at this point in the history
Co-authored-by: seven <[email protected]>
  • Loading branch information
s7v7nislands and seven authored Mar 2, 2022
1 parent 7307d97 commit f4ff426
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func DialContext(ctx context.Context, rawurl string) (*Client, error) {
}
}

// Client retrieves the client from the context, if any. This can be used to perform
// ClientFromContext retrieves the client from the context, if any. This can be used to perform
// 'reverse calls' in a handler method.
func ClientFromContext(ctx context.Context) (*Client, bool) {
client, ok := ctx.Value(clientContextKey{}).(*Client)
Expand Down Expand Up @@ -333,7 +333,7 @@ func (c *Client) BatchCall(b []BatchElem) error {
return c.BatchCallContext(ctx, b)
}

// BatchCall sends all given requests as a single batch and waits for the server
// BatchCallContext sends all given requests as a single batch and waits for the server
// to return a response for all of them. The wait duration is bounded by the
// context's deadline.
//
Expand Down
2 changes: 1 addition & 1 deletion rpc/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
var (
// ErrNotificationsUnsupported is returned when the connection doesn't support notifications
ErrNotificationsUnsupported = errors.New("notifications not supported")
// ErrNotificationNotFound is returned when the notification for the given id is not found
// ErrSubscriptionNotFound is returned when the notification for the given id is not found
ErrSubscriptionNotFound = errors.New("subscription not found")
)

Expand Down

0 comments on commit f4ff426

Please sign in to comment.