( ctx context.Context, cn *pool.Conn, err error, allowTimeout bool, )
| 156 | } |
| 157 | |
| 158 | func (c *PubSub) releaseConnWithLock( |
| 159 | ctx context.Context, |
| 160 | cn *pool.Conn, |
| 161 | err error, |
| 162 | allowTimeout bool, |
| 163 | ) { |
| 164 | c.mu.Lock() |
| 165 | c.releaseConn(ctx, cn, err, allowTimeout) |
| 166 | c.mu.Unlock() |
| 167 | } |
| 168 | |
| 169 | func (c *PubSub) releaseConn(ctx context.Context, cn *pool.Conn, err error, allowTimeout bool) { |
| 170 | if c.cn != cn { |
no test coverage detected