diff --git a/pubsub.go b/pubsub.go index aea2bed7..3ee00e88 100644 --- a/pubsub.go +++ b/pubsub.go @@ -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 }