mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 07:37:20 +00:00
rpc: use reflect.TypeFor (#32316)
This commit is contained in:
parent
e7189b5987
commit
f49f3ec780
1 changed files with 4 additions and 4 deletions
|
|
@ -29,10 +29,10 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
contextType = reflect.TypeOf((*context.Context)(nil)).Elem()
|
||||
errorType = reflect.TypeOf((*error)(nil)).Elem()
|
||||
subscriptionType = reflect.TypeOf(Subscription{})
|
||||
stringType = reflect.TypeOf("")
|
||||
contextType = reflect.TypeFor[context.Context]()
|
||||
errorType = reflect.TypeFor[error]()
|
||||
subscriptionType = reflect.TypeFor[Subscription]()
|
||||
stringType = reflect.TypeFor[string]()
|
||||
)
|
||||
|
||||
type serviceRegistry struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue