diff options
Diffstat (limited to 'rpc/v2/types.go')
-rw-r--r-- | rpc/v2/types.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/v2/types.go b/rpc/v2/types.go index d538e0a3f..8e638726f 100644 --- a/rpc/v2/types.go +++ b/rpc/v2/types.go @@ -22,7 +22,6 @@ import ( "math/big" "reflect" "strings" - "sync" "github.com/ethereum/go-ethereum/event" @@ -41,6 +40,7 @@ type callback struct { rcvr reflect.Value // receiver of method method reflect.Method // callback argTypes []reflect.Type // input argument types + hasCtx bool // method's first argument is a context (not included in argTypes) errPos int // err return idx, of -1 when method cannot return error isSubscribe bool // indication if the callback is a subscription } |