MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / PutConn

Method PutConn

IceFireDB-SQLite/pkg/mysql/client/pool.go:165–170  ·  view source on GitHub ↗

PutConn returns working connection back to pool

(conn *Conn)

Source from the content-addressed store, hash-verified

163
164// PutConn returns working connection back to pool
165func (pool *Pool) PutConn(conn *Conn) {
166 pool.putConnection(Connection{
167 conn: conn,
168 lastUseAt: pool.nowTs(),
169 })
170}
171
172// DropConn closes the connection without any checks
173func (pool *Pool) DropConn(conn *Conn) {

Callers

nothing calls this directly

Calls 2

putConnectionMethod · 0.95
nowTsMethod · 0.95

Tested by

no test coverage detected