1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Fix/normalise pubsubnumsub response

This commit is contained in:
Dimitrij Denissenko
2015-01-25 12:05:19 +00:00
committed by Vladimir Mihailenco
parent 2a81661b34
commit 34855172f2
4 changed files with 75 additions and 6 deletions

View File

@ -1231,10 +1231,10 @@ func (c *Client) PubSubChannels(pattern string) *StringSliceCmd {
return cmd
}
func (c *Client) PubSubNumSub(channels ...string) *SliceCmd {
func (c *Client) PubSubNumSub(channels ...string) *StringIntMapCmd {
args := []string{"PUBSUB", "NUMSUB"}
args = append(args, channels...)
cmd := NewSliceCmd(args...)
cmd := NewStringIntMapCmd(args...)
c.Process(cmd)
return cmd
}