diff options
author | Jay <codeholic.arena@gmail.com> | 2018-08-09 13:56:35 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-08-09 13:56:35 +0800 |
commit | abbb219933504a2aa739353a1cb6157cdd0cf145 (patch) | |
tree | 69551221704399d116bcd9ef2bb267e308c29632 /rpc/client_example_test.go | |
parent | 8051a0768a2af6c36b04ffa6fb225a45986d9b89 (diff) | |
download | dexon-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.go | 2 |
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 |