Skip to content

Commit

Permalink
rpc: deprecate Client.ShhSubscribe (ethereum#22239)
Browse files Browse the repository at this point in the history
It never worked, whisper uses polling.

Co-authored-by: Felix Lange <fjl@twurst.com>
  • Loading branch information
gballet and fjl committed Jan 27, 2021
1 parent a72fa88 commit 2e5d141
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ func (c *Client) EthSubscribe(ctx context.Context, channel interface{}, args ...
}

// ShhSubscribe registers a subscripion 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...)
}
Expand Down

0 comments on commit 2e5d141

Please sign in to comment.