From 81389df9484c28dfcec1cf7592b8d0f8b7e4e8e1 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Sat, 21 May 2022 20:38:21 +0300 Subject: Improvments. Breaking changes --- rpc/wrapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpc/wrapper.go') 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 { -- cgit v1.2.3