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

Struct OneSucceededAggregator

internal/routing/aggregator.go:155–158  ·  view source on GitHub ↗

OneSucceededAggregator returns the first non-error reply, if all shards errored, returns any one of those errors.

Source from the content-addressed store, hash-verified

153// OneSucceededAggregator returns the first non-error reply,
154// if all shards errored, returns any one of those errors.
155type OneSucceededAggregator struct {
156 err atomic.Value
157 res atomic.Value
158}
159
160func (a *OneSucceededAggregator) Add(result interface{}, err error) error {
161 if err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected