From 5adaa78c36106ec9f3423244edad4c4fd1a98b44 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 10 Feb 2021 13:16:28 +0300 Subject: [PATCH] move renovate.json Signed-off-by: Vasiliy Tolstov --- .github/renovate.json | 15 +++++++++++++++ handler.go | 4 ++-- renovate.json | 5 ----- 3 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 .github/renovate.json delete mode 100644 renovate.json diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..c1d5c21 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,15 @@ +{ + "extends": [ + "config:base" + ], + "packageRules": [ + { + "groupName": "all deps", + "separateMajorMinor": true, + "groupSlug": "all", + "packagePatterns": [ + "*" + ] + } + ] +} diff --git a/handler.go b/handler.go index cdf6005..c3a7007 100644 --- a/handler.go +++ b/handler.go @@ -117,7 +117,7 @@ func (h *httpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { return } - md, ok := metadata.FromContext(ctx) + md, ok := metadata.FromIncomingContext(ctx) if !ok { md = metadata.New(0) } @@ -188,7 +188,7 @@ func (h *httpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { // define the handler func fn := func(ctx context.Context, req server.Request, rsp interface{}) (err error) { ctx = context.WithValue(ctx, rspCodeKey{}, &rspCodeVal{}) - ctx = metadata.NewContext(ctx, md) + ctx = metadata.NewIncomingContext(ctx, md) returnValues = function.Call([]reflect.Value{hldr.rcvr, hldr.mtype.prepareContext(ctx), reflect.ValueOf(argv.Interface()), reflect.ValueOf(rsp)}) scode = GetRspCode(ctx) diff --git a/renovate.json b/renovate.json deleted file mode 100644 index f45d8f1..0000000 --- a/renovate.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": [ - "config:base" - ] -}