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

Method RemoteAddr

internal/pool/conn.go:882–888  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

880}
881
882func (cn *Conn) RemoteAddr() net.Addr {
883 // Lock-free netConn access for better performance
884 if netConn := cn.getNetConn(); netConn != nil {
885 return netConn.RemoteAddr()
886 }
887 return nil
888}
889
890func (cn *Conn) WithReader(
891 ctx context.Context, timeout time.Duration, fn func(rd *proto.Reader) error,

Callers

nothing calls this directly

Calls 2

getNetConnMethod · 0.95
RemoteAddrMethod · 0.65

Tested by

no test coverage detected