From 4e2f1ee58d1aa49f85c3a28a4f96e915f12bdb21 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sun, 18 Jun 2023 15:59:09 +0800 Subject: Refactor web package and context package (#25298) 1. The "web" package shouldn't depends on "modules/context" package, instead, let each "web context" register themselves to the "web" package. 2. The old Init/Free doesn't make sense, so simplify it * The ctx in "Init(ctx)" is never used, and shouldn't be used that way * The "Free" is never called and shouldn't be called because the SSPI instance is shared --------- Co-authored-by: Giteabot --- modules/web/middleware/data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/web/middleware') diff --git a/modules/web/middleware/data.go b/modules/web/middleware/data.go index c1f0516d7d..9497dc02e2 100644 --- a/modules/web/middleware/data.go +++ b/modules/web/middleware/data.go @@ -17,7 +17,7 @@ type ContextDataStore interface { type ContextData map[string]any -func (ds ContextData) GetData() map[string]any { +func (ds ContextData) GetData() ContextData { return ds } -- cgit v1.2.3