diff options
Diffstat (limited to 'rpc/notification_test.go')
-rw-r--r-- | rpc/notification_test.go | 2 |
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 } |