MCPcopy Create free account
hub / github.com/dadgar/onecache / markForUse

Method markForUse

onecache/pool.go:43–46  ·  view source on GitHub ↗

markForUse does all the bookkeeping required to ready a connection for use.

()

Source from the content-addressed store, hash-verified

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

Callers 1

acquireMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected