Skip to content

Commit abbb219

Browse files
RuleTheMomentskaralabe
authored andcommitted
rpc: fix a subscription name (#17345)
1 parent 8051a07 commit abbb219

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎rpc/client_example_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func subscribeBlocks(client *rpc.Client, subch chan Block) {
6666
defer cancel()
6767

6868
// Subscribe to new blocks.
69-
sub, err := client.EthSubscribe(ctx, subch, "newBlocks")
69+
sub, err := client.EthSubscribe(ctx, subch, "newHeads")
7070
if err != nil {
7171
fmt.Println("subscribe error:", err)
7272
return

0 commit comments

Comments
 (0)