mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
rpc: use any
This commit is contained in:
parent
416485400c
commit
4180b5d442
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue