MCPcopy
hub / github.com/redis/go-redis / GetDialStartNs

Method GetDialStartNs

internal/pool/conn.go:203–205  ·  view source on GitHub ↗

GetDialStartNs returns the time when the dial started (in nanoseconds since epoch). This is used to calculate the full connection creation time (TCP + handshake).

()

Source from the content-addressed store, hash-verified

201// GetDialStartNs returns the time when the dial started (in nanoseconds since epoch).
202// This is used to calculate the full connection creation time (TCP + handshake).
203func (cn *Conn) GetDialStartNs() int64 {
204 return cn.dialStartNs.Load()
205}
206
207// PoolName returns the name of the pool this connection belongs to.
208// This is used for metrics to identify which pool a connection is from.

Callers 2

getConnMethod · 0.95
_getConnMethod · 0.80

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected