Skip to content

Commit

Permalink
Merge pull request redis#233 from Freeaqingme/master
Browse files Browse the repository at this point in the history
Bugfix: pubsub/psubscribe should register a pattern rather than channel
  • Loading branch information
vmihailenco committed Dec 31, 2015
2 parents edae11b + 84cd769 commit d226168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (c *PubSub) Subscribe(channels ...string) error {
func (c *PubSub) PSubscribe(patterns ...string) error {
err := c.subscribe("PSUBSCRIBE", patterns...)
if err == nil {
c.channels = append(c.channels, patterns...)
c.patterns = append(c.patterns, patterns...)
}
return err
}
Expand Down

0 comments on commit d226168

Please sign in to comment.