rpc: remove NotifierContextKey
Context keys must have a unique type in order to prevent any unintented clashes. The code used int(1) as key. Fix it by implementing the pattern recommended by package context.
Showing
- eth/api.go 2 additions, 2 deletionseth/api.go
- eth/downloader/api.go 1 addition, 1 deletioneth/downloader/api.go
- eth/filters/api.go 1 addition, 1 deletioneth/filters/api.go
- rpc/notification.go 9 additions, 0 deletionsrpc/notification.go
- rpc/notification_test.go 1 addition, 1 deletionrpc/notification_test.go
- rpc/server.go 4 additions, 7 deletionsrpc/server.go
Loading
Please register or sign in to comment