Skip to content

Commit

Permalink
Remove an additional variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
beautifulentropy committed Dec 18, 2024
1 parent 092f4ec commit 12dcb84
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ratelimits/source_redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ func (r *RedisSource) BatchGet(ctx context.Context, bucketKeys []string) (map[st
}

tats := make(map[string]time.Time, len(bucketKeys))
notFoundCount := 0
for i, result := range results {
tatNano, err := result.(*redis.StringCmd).Int64()
if err != nil {
Expand All @@ -127,7 +126,6 @@ func (r *RedisSource) BatchGet(ctx context.Context, bucketKeys []string) (map[st
return nil, err
}
// Bucket key does not exist.
notFoundCount++
continue
}
tats[bucketKeys[i]] = time.Unix(0, tatNano).UTC()
Expand Down

0 comments on commit 12dcb84

Please sign in to comment.