Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Jun 17, 2017
1 parent 1471ec2 commit 167410b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ func (c *Client) pubSub() *PubSub {
}

// Subscribe subscribes the client to the specified channels.
// Channels can be omitted to create empty subscription.
func (c *Client) Subscribe(channels ...string) *PubSub {
pubsub := c.pubSub()
if len(channels) > 0 {
Expand All @@ -392,6 +393,7 @@ func (c *Client) Subscribe(channels ...string) *PubSub {
}

// PSubscribe subscribes the client to the given patterns.
// Patterns can be omitted to create empty subscription.
func (c *Client) PSubscribe(channels ...string) *PubSub {
pubsub := c.pubSub()
if len(channels) > 0 {
Expand Down

0 comments on commit 167410b

Please sign in to comment.