diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-04-19 15:22:48 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-04-19 15:22:48 +0800 |
commit | a6ca8fd26884807c80b649bd2a0e780aa93ced22 (patch) | |
tree | 5b0e615a854e31e10e7a606e9e44b51b910529e9 /eth/downloader/api.go | |
parent | 27116bd46cbc14a8eec9e1818945f1f10b9b834a (diff) | |
parent | a40e61b4ac44a4f64f057a4220a26cfe4b9dcf03 (diff) | |
download | go-tangerine-a6ca8fd26884807c80b649bd2a0e780aa93ced22.tar go-tangerine-a6ca8fd26884807c80b649bd2a0e780aa93ced22.tar.gz go-tangerine-a6ca8fd26884807c80b649bd2a0e780aa93ced22.tar.bz2 go-tangerine-a6ca8fd26884807c80b649bd2a0e780aa93ced22.tar.lz go-tangerine-a6ca8fd26884807c80b649bd2a0e780aa93ced22.tar.xz go-tangerine-a6ca8fd26884807c80b649bd2a0e780aa93ced22.tar.zst go-tangerine-a6ca8fd26884807c80b649bd2a0e780aa93ced22.zip |
Merge pull request #2463 from fjl/rpc-context-key
rpc: remove NotifierContextKey
Diffstat (limited to 'eth/downloader/api.go')
-rw-r--r-- | eth/downloader/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/api.go b/eth/downloader/api.go index 670a3ade3..94cd6515f 100644 --- a/eth/downloader/api.go +++ b/eth/downloader/api.go @@ -85,7 +85,7 @@ type SyncingResult struct { // Syncing provides information when this nodes starts synchronising with the Ethereum network and when it's finished. func (api *PublicDownloaderAPI) Syncing(ctx context.Context) (rpc.Subscription, error) { - notifier, supported := ctx.Value(rpc.NotifierContextKey).(rpc.Notifier) + notifier, supported := rpc.NotifierFromContext(ctx) if !supported { return nil, rpc.ErrNotificationsUnsupported } |