()
| 274 | } |
| 275 | |
| 276 | func (c *Client) setContext() { |
| 277 | c.ctxMu.Lock() |
| 278 | c.ctx, c.cancel = context.WithCancel(context.Background()) |
| 279 | c.ctxMu.Unlock() |
| 280 | } |
| 281 | |
| 282 | func (c *Client) closeContext() { |
| 283 | c.ctxMu.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected