fix(reset): initialize subs as a map in clearCache method
This commit is contained in:
parent
a2d8d7d0bd
commit
ef7491d025
@ -579,7 +579,7 @@ func (l *ResetTrafficLogic) isRetryableError(err error) bool {
|
|||||||
// clearCache clears the reset traffic cache
|
// clearCache clears the reset traffic cache
|
||||||
func (l *ResetTrafficLogic) clearCache(ctx context.Context, list []*user.Subscribe) {
|
func (l *ResetTrafficLogic) clearCache(ctx context.Context, list []*user.Subscribe) {
|
||||||
if len(list) != 0 {
|
if len(list) != 0 {
|
||||||
var subs map[int64]bool
|
subs := make(map[int64]bool)
|
||||||
|
|
||||||
for _, sub := range list {
|
for _, sub := range list {
|
||||||
if sub.SubscribeId > 0 {
|
if sub.SubscribeId > 0 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user