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

Function CircuitBreakerReopened

internal/maintnotifications/logs/log_messages.go:588–593  ·  view source on GitHub ↗
(endpoint string)

Source from the content-addressed store, hash-verified

586}
587
588func CircuitBreakerReopened(endpoint string) string {
589 message := fmt.Sprintf("%s for endpoint %s due to failure in half-open state", CircuitBreakerReopenedMessage, endpoint)
590 return appendJSONIfDebug(message, map[string]interface{}{
591 "endpoint": endpoint,
592 })
593}
594
595func CircuitBreakerClosed(endpoint string, successes int64) string {
596 message := fmt.Sprintf("%s for endpoint %s after %d successful requests", CircuitBreakerClosedMessage, endpoint, successes)

Callers 1

recordFailureMethod · 0.92

Calls 1

appendJSONIfDebugFunction · 0.85

Tested by

no test coverage detected