aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/notification_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-04-19 15:22:48 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-04-19 15:22:48 +0800
commita6ca8fd26884807c80b649bd2a0e780aa93ced22 (patch)
tree5b0e615a854e31e10e7a606e9e44b51b910529e9 /rpc/notification_test.go
parent27116bd46cbc14a8eec9e1818945f1f10b9b834a (diff)
parenta40e61b4ac44a4f64f057a4220a26cfe4b9dcf03 (diff)
downloaddexon-a6ca8fd26884807c80b649bd2a0e780aa93ced22.tar
dexon-a6ca8fd26884807c80b649bd2a0e780aa93ced22.tar.gz
dexon-a6ca8fd26884807c80b649bd2a0e780aa93ced22.tar.bz2
dexon-a6ca8fd26884807c80b649bd2a0e780aa93ced22.tar.lz
dexon-a6ca8fd26884807c80b649bd2a0e780aa93ced22.tar.xz
dexon-a6ca8fd26884807c80b649bd2a0e780aa93ced22.tar.zst
dexon-a6ca8fd26884807c80b649bd2a0e780aa93ced22.zip
Merge pull request #2463 from fjl/rpc-context-key
rpc: remove NotifierContextKey
Diffstat (limited to 'rpc/notification_test.go')
-rw-r--r--rpc/notification_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/notification_test.go b/rpc/notification_test.go
index cd05d73fe..1bcede177 100644
--- a/rpc/notification_test.go
+++ b/rpc/notification_test.go
@@ -36,7 +36,7 @@ func (s *NotificationTestService) Unsubscribe(subid string) {
}
func (s *NotificationTestService) SomeSubscription(ctx context.Context, n, val int) (Subscription, error) {
- notifier, supported := ctx.Value(NotifierContextKey).(Notifier)
+ notifier, supported := NotifierFromContext(ctx)
if !supported {
return nil, ErrNotificationsUnsupported
}