aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/client_example_test.go
diff options
context:
space:
mode:
authorJay <codeholic.arena@gmail.com>2018-08-09 13:56:35 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-08-09 13:56:35 +0800
commitabbb219933504a2aa739353a1cb6157cdd0cf145 (patch)
tree69551221704399d116bcd9ef2bb267e308c29632 /rpc/client_example_test.go
parent8051a0768a2af6c36b04ffa6fb225a45986d9b89 (diff)
downloaddexon-abbb219933504a2aa739353a1cb6157cdd0cf145.tar.gz
dexon-abbb219933504a2aa739353a1cb6157cdd0cf145.tar.zst
dexon-abbb219933504a2aa739353a1cb6157cdd0cf145.zip
rpc: fix a subscription name (#17345)
Diffstat (limited to 'rpc/client_example_test.go')
-rw-r--r--rpc/client_example_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/client_example_test.go b/rpc/client_example_test.go
index 8276a9ead..9c21c12d5 100644
--- a/rpc/client_example_test.go
+++ b/rpc/client_example_test.go
@@ -66,7 +66,7 @@ func subscribeBlocks(client *rpc.Client, subch chan Block) {
defer cancel()
// Subscribe to new blocks.
- sub, err := client.EthSubscribe(ctx, subch, "newBlocks")
+ sub, err := client.EthSubscribe(ctx, subch, "newHeads")
if err != nil {
fmt.Println("subscribe error:", err)
return