Skip to content

Commit fd41f20

Browse files
committed
PFCOUNT: Mimic variadic API to other methods receiving N keys.
1 parent 8add9cc commit fd41f20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/redis.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2485,7 +2485,7 @@ def pfadd(key, member)
24852485
# @return [Fixnum]
24862486
def pfcount(*keys)
24872487
synchronize do |client|
2488-
client.call([:pfcount] + keys.flatten(1))
2488+
client.call([:pfcount] + keys)
24892489
end
24902490
end
24912491

test/lint/hyper_log_log.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_variadic_pfcount
3939
assert_equal true, r.pfadd("{1}bar", "s1")
4040
assert_equal true, r.pfadd("{1}bar", "s2")
4141

42-
assert_equal 2, r.pfcount(["{1}foo", "{1}bar"])
42+
assert_equal 2, r.pfcount("{1}foo", "{1}bar")
4343
end
4444
end
4545

0 commit comments

Comments
 (0)