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:
committed by
Vladimir Mihailenco
parent
2a81661b34
commit
34855172f2
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user