From ef7491d02549c9f1dd86d4ee63d768e7a5e05c0d Mon Sep 17 00:00:00 2001 From: Chang lue Tsen Date: Thu, 4 Sep 2025 12:32:28 -0400 Subject: [PATCH] fix(reset): initialize subs as a map in clearCache method --- queue/logic/traffic/resetTrafficLogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue/logic/traffic/resetTrafficLogic.go b/queue/logic/traffic/resetTrafficLogic.go index 11c5c7d..8f4f525 100644 --- a/queue/logic/traffic/resetTrafficLogic.go +++ b/queue/logic/traffic/resetTrafficLogic.go @@ -579,7 +579,7 @@ func (l *ResetTrafficLogic) isRetryableError(err error) bool { // clearCache clears the reset traffic cache func (l *ResetTrafficLogic) clearCache(ctx context.Context, list []*user.Subscribe) { if len(list) != 0 { - var subs map[int64]bool + subs := make(map[int64]bool) for _, sub := range list { if sub.SubscribeId > 0 {