From 48a3fe65885142b8d9a47829fae090fd9a57c20f Mon Sep 17 00:00:00 2001 From: xing Date: Mon, 23 Oct 2023 22:47:21 +0800 Subject: [PATCH] fix --- app/cmd/reload/reload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cmd/reload/reload.go b/app/cmd/reload/reload.go index f1c2842..74c78dc 100644 --- a/app/cmd/reload/reload.go +++ b/app/cmd/reload/reload.go @@ -37,7 +37,7 @@ var safetyMapLock = sync.Mutex{} var flushMapFn = safety.NewMap[string, func(any)]() -func FlushMapVal(namespace string, key any) { +func FlushMapVal[T any](namespace string, key T) { fn, ok := flushMapFn.Load(namespace) if !ok { return