markForUse does all the bookkeeping required to ready a connection for use.
()
| 41 | |
| 42 | // markForUse does all the bookkeeping required to ready a connection for use. |
| 43 | func (c *conn) markForUse() { |
| 44 | c.lastUsed = time.Now() |
| 45 | atomic.AddInt32(&c.refCount, 1) |
| 46 | } |
| 47 | |
| 48 | func (c *conn) Close() error { |
| 49 | return c.session.Close() |