Skip to content

Commit

Permalink
fix: nil pointer dereference when failed to scan out the quota record…
Browse files Browse the repository at this point in the history
…s from redis (#21046)

Signed-off-by: Liang Zheng <zhengliang0901@gmail.com>
  • Loading branch information
microyahoo authored Oct 15, 2024
1 parent ab3d350 commit de6c96b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controller/quota/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func flushQuota(ctx context.Context) {
iter, err := cache.Default().Scan(ctx, "quota:*")
if err != nil {
log.Errorf("failed to scan out the quota records from redis")
return
}

for iter.Next(ctx) {
Expand Down

0 comments on commit de6c96b

Please sign in to comment.