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

chore: fix some comments (#2967)

Signed-off-by: kindknow <iturf@sina.com>
Co-authored-by: Monkey <golang@88.com>
This commit is contained in:
kindknow
2024-04-14 01:15:23 +08:00
committed by GitHub
parent f5496d14dd
commit 6960bcc08d
4 changed files with 5 additions and 5 deletions

View File

@ -491,7 +491,7 @@ func (c *PubSub) getContext() context.Context {
// Receive* APIs can not be used after channel is created.
//
// go-redis periodically sends ping messages to test connection health
// and re-subscribes if ping can not not received for 1 minute.
// and re-subscribes if ping can not received for 1 minute.
func (c *PubSub) Channel(opts ...ChannelOption) <-chan *Message {
c.chOnce.Do(func() {
c.msgCh = newChannel(c, opts...)