From 3b30bb049ec7d04fbfa473921e30987c9d5bf6ac Mon Sep 17 00:00:00 2001 From: risqy Date: Thu, 27 Jul 2023 09:58:10 +0200 Subject: [PATCH] v0.0.214 reassign innerctx --- ginext/appContext.go | 4 ++-- goextVersion.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ginext/appContext.go b/ginext/appContext.go index ef61442..f4cd1b1 100644 --- a/ginext/appContext.go +++ b/ginext/appContext.go @@ -15,7 +15,7 @@ type AppContext struct { func CreateAppContext(g *gin.Context, innerCtx context.Context, cancelFn context.CancelFunc) *AppContext { for key, value := range g.Keys { - context.WithValue(innerCtx, key, value) + innerCtx = context.WithValue(innerCtx, key, value) } return &AppContext{ inner: innerCtx, @@ -42,7 +42,7 @@ func (ac *AppContext) Value(key any) any { } func (ac *AppContext) Set(key, value any) { - context.WithValue(ac.inner, key, value) + ac.inner = context.WithValue(ac.inner, key, value) } func (ac *AppContext) Cancel() { diff --git a/goextVersion.go b/goextVersion.go index 13e0926..7530483 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.213" +const GoextVersion = "0.0.214" -const GoextVersionTimestamp = "2023-07-27T09:46:06+0200" +const GoextVersionTimestamp = "2023-07-27T09:58:10+0200"