fix(reset): initialize subs as a map in clearCache method

This commit is contained in:
Chang lue Tsen 2025-09-04 12:32:28 -04:00
parent a2d8d7d0bd
commit ef7491d025

View File

@ -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 {