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

Function HandoffFailed

internal/maintnotifications/logs/log_messages.go:142–151  ·  view source on GitHub ↗
(connID uint64, newEndpoint string, attempt int, maxAttempts int, err error)

Source from the content-addressed store, hash-verified

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)
144 return appendJSONIfDebug(message, map[string]interface{}{
145 "connID": connID,
146 "endpoint": newEndpoint,
147 "attempt": attempt,
148 "maxAttempts": maxAttempts,
149 "error": err.Error(),
150 })
151}
152
153func HandoffSucceeded(connID uint64, newEndpoint string) string {
154 message := fmt.Sprintf("conn[%d] %s to %s", connID, HandoffSuccessMessage, newEndpoint)

Callers 1

processHandoffRequestMethod · 0.92

Calls 2

appendJSONIfDebugFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected