(ctx context.Context)
| 65 | } |
| 66 | |
| 67 | func (c *PubSub) connWithLock(ctx context.Context) (*pool.Conn, error) { |
| 68 | c.mu.Lock() |
| 69 | cn, err := c.conn(ctx, nil) |
| 70 | c.mu.Unlock() |
| 71 | return cn, err |
| 72 | } |
| 73 | |
| 74 | func (c *PubSub) conn(ctx context.Context, newChannels []string) (*pool.Conn, error) { |
| 75 | if c.closed { |