rpc: remove shh and bzz

This commit is contained in:
Gary Rong 2025-07-01 13:55:43 +08:00
parent 5428d56950
commit 46f5aaaf99
2 changed files with 1 additions and 7 deletions

View file

@ -487,12 +487,6 @@ func (c *Client) EthSubscribe(ctx context.Context, channel interface{}, args ...
return c.Subscribe(ctx, "eth", channel, args...) return c.Subscribe(ctx, "eth", channel, args...)
} }
// 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...)
}
// Subscribe calls the "<namespace>_subscribe" method with the given arguments, // Subscribe calls the "<namespace>_subscribe" method with the given arguments,
// registering a subscription. Server notifications for the subscription are // registering a subscription. Server notifications for the subscription are
// sent to the given channel. The element type of the channel must match the // sent to the given channel. The element type of the channel must match the

View file

@ -59,7 +59,7 @@ func TestSubscriptions(t *testing.T) {
t.Parallel() t.Parallel()
var ( var (
namespaces = []string{"eth", "bzz"} namespaces = []string{"eth"}
service = &notificationTestService{} service = &notificationTestService{}
subCount = len(namespaces) subCount = len(namespaces)
notificationCount = 3 notificationCount = 3