Skip to content

Commit

Permalink
FIX: Remove Redis 4.2 warnings (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Aug 18, 2020
1 parent b50d8a1 commit 3edd11d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logster/redis_store.rb
Expand Up @@ -342,7 +342,7 @@ def get_all_ignore_count
def rate_limited?(ip_address, perform: false, limit: 60)
key = ip_rate_limit_key(ip_address)

limited = @redis.exists(key)
limited = @redis.call([:exists, key])
if Integer === limited
limited = limited != 0
end
Expand Down

0 comments on commit 3edd11d

Please sign in to comment.