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

Function FailedToDialNewEndpoint

internal/maintnotifications/logs/log_messages.go:210–217  ·  view source on GitHub ↗
(connID uint64, endpoint string, err error)

Source from the content-addressed store, hash-verified

208}
209
210func FailedToDialNewEndpoint(connID uint64, endpoint string, err error) string {
211 message := fmt.Sprintf("conn[%d] %s %s: %v", connID, FailedToDialNewEndpointMessage, endpoint, err)
212 return appendJSONIfDebug(message, map[string]interface{}{
213 "connID": connID,
214 "endpoint": endpoint,
215 "error": err.Error(),
216 })
217}
218
219func ReachedMaxHandoffRetries(connID uint64, endpoint string, maxRetries int) string {
220 message := fmt.Sprintf("conn[%d] %s to %s (max retries: %d)", connID, ReachedMaxHandoffRetriesMessage, endpoint, maxRetries)

Callers 1

Calls 2

appendJSONIfDebugFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected