From 4180b5d4426afa86c9e3d1ee887c3133a8536e89 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 31 Oct 2023 12:24:15 +0100 Subject: [PATCH] rpc: use any --- rpc/subscription.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/subscription.go b/rpc/subscription.go index 5589aa5f6f..3c89d9e2d2 100644 --- a/rpc/subscription.go +++ b/rpc/subscription.go @@ -105,7 +105,7 @@ type Notifier struct { mu sync.Mutex sub *Subscription - buffer []interface{} + buffer []any callReturned bool activated bool } @@ -129,7 +129,7 @@ func (n *Notifier) CreateSubscription() *Subscription { // Notify sends a notification to the client with the given data as payload. // If an error occurs the RPC connection is closed and the error is returned. -func (n *Notifier) Notify(id ID, data interface{}) error { +func (n *Notifier) Notify(id ID, data any) error { n.mu.Lock() defer n.mu.Unlock()