( ctx context.Context, cn *pool.Conn, redisCmd string, channels []string, )
| 144 | } |
| 145 | |
| 146 | func (c *PubSub) _subscribe( |
| 147 | ctx context.Context, cn *pool.Conn, redisCmd string, channels []string, |
| 148 | ) error { |
| 149 | args := make([]interface{}, 0, 1+len(channels)) |
| 150 | args = append(args, redisCmd) |
| 151 | for _, channel := range channels { |
| 152 | args = append(args, channel) |
| 153 | } |
| 154 | cmd := NewSliceCmd(ctx, args...) |
| 155 | return c.writeCmd(ctx, cn, cmd) |
| 156 | } |
| 157 | |
| 158 | func (c *PubSub) releaseConnWithLock( |
| 159 | ctx context.Context, |
no test coverage detected