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

Function HandoffStarted

internal/maintnotifications/logs/log_messages.go:134–140  ·  view source on GitHub ↗
(connID uint64, newEndpoint string)

Source from the content-addressed store, hash-verified

132)
133
134func HandoffStarted(connID uint64, newEndpoint string) string {
135 message := fmt.Sprintf("conn[%d] %s to %s", connID, HandoffStartedMessage, newEndpoint)
136 return appendJSONIfDebug(message, map[string]interface{}{
137 "connID": connID,
138 "endpoint": newEndpoint,
139 })
140}
141
142func HandoffFailed(connID uint64, newEndpoint string, attempt int, maxAttempts int, err error) string {
143 message := fmt.Sprintf("conn[%d] %s to %s (attempt %d/%d): %v", connID, HandoffFailedMessage, newEndpoint, attempt, maxAttempts, err)

Callers 1

processHandoffRequestMethod · 0.92

Calls 1

appendJSONIfDebugFunction · 0.85

Tested by

no test coverage detected