(ctx context.Context, redisCmd string, channels ...string)
| 332 | } |
| 333 | |
| 334 | func (c *PubSub) subscribe(ctx context.Context, redisCmd string, channels ...string) error { |
| 335 | cn, err := c.conn(ctx, channels) |
| 336 | if err != nil { |
| 337 | return err |
| 338 | } |
| 339 | |
| 340 | err = c._subscribe(ctx, cn, redisCmd, channels) |
| 341 | c.releaseConn(ctx, cn, err, false) |
| 342 | return err |
| 343 | } |
| 344 | |
| 345 | func (c *PubSub) Ping(ctx context.Context, payload ...string) error { |
| 346 | args := []interface{}{"ping"} |
no test coverage detected