rpc/client: fix typo #23834 (#961)

Co-authored-by: chuwt <weitaochu@gmail.com>
This commit is contained in:
Daniel Liu 2025-04-24 18:32:44 +08:00 committed by GitHub
parent a997425b03
commit de88f30b58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -447,12 +447,12 @@ func (c *Client) Notify(ctx context.Context, method string, args ...interface{})
return c.send(ctx, op, msg)
}
// EthSubscribe registers a subscripion under the "eth" namespace.
// EthSubscribe registers a subscription under the "eth" namespace.
func (c *Client) EthSubscribe(ctx context.Context, channel interface{}, args ...interface{}) (*ClientSubscription, error) {
return c.Subscribe(ctx, "eth", channel, args...)
}
// ShhSubscribe registers a subscripion under the "shh" namespace.
// ShhSubscribe registers a subscription under the "shh" namespace.
// Deprecated: use Subscribe(ctx, "shh", ...).
func (c *Client) ShhSubscribe(ctx context.Context, channel interface{}, args ...interface{}) (*ClientSubscription, error) {
return c.Subscribe(ctx, "shh", channel, args...)