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

Method PutConn

IceFireDB-SQLProxy/pkg/mysql/client/pool.go:167–172  ·  view source on GitHub ↗

PutConn returns working connection back to pool

(conn *Conn)

Source from the content-addressed store, hash-verified

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

Callers 1

pushConnMethod · 0.45

Calls 2

putConnectionMethod · 0.95
nowTsMethod · 0.95

Tested by

no test coverage detected