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

Method GetHandoffEndpoint

internal/pool/conn.go:404–409  ·  view source on GitHub ↗

GetHandoffEndpoint returns the new endpoint for handoff (lock-free).

()

Source from the content-addressed store, hash-verified

402
403// GetHandoffEndpoint returns the new endpoint for handoff (lock-free).
404func (cn *Conn) GetHandoffEndpoint() string {
405 if v := cn.handoffStateAtomic.Load(); v != nil {
406 return v.(*HandoffState).Endpoint
407 }
408 return ""
409}
410
411// GetMovingSeqID returns the sequence ID from the MOVING notification (lock-free).
412func (cn *Conn) GetMovingSeqID() int64 {

Callers 3

TestConnectionHookFunction · 0.95
reconnectMethod · 0.80

Calls 1

LoadMethod · 0.45

Tested by 1

TestConnectionHookFunction · 0.76