diff options
Diffstat (limited to 'rpc/wrapper.go')
-rw-r--r-- | rpc/wrapper.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/wrapper.go b/rpc/wrapper.go index bfcd381..9b4de28 100644 --- a/rpc/wrapper.go +++ b/rpc/wrapper.go @@ -24,7 +24,7 @@ import ( "encoding/json" ) -func Wrap[RQ any, RS any](handler func(context.Context, *RQ) (RS, error)) Handler { +func H[RQ any, RS any](handler func(context.Context, *RQ) (RS, error)) Handler { return func(ctx context.Context, in json.RawMessage) (json.RawMessage, error) { req := new(RQ) if err := json.Unmarshal(in, req); err != nil { |