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

Struct AllSucceededAggregator

internal/routing/aggregator.go:91–94  ·  view source on GitHub ↗

AllSucceededAggregator returns one non-error reply if every shard succeeded, propagates the first error otherwise.

Source from the content-addressed store, hash-verified

89// AllSucceededAggregator returns one non-error reply if every shard succeeded,
90// propagates the first error otherwise.
91type AllSucceededAggregator struct {
92 err atomic.Value
93 res atomic.Value
94}
95
96func (a *AllSucceededAggregator) Add(result interface{}, err error) error {
97 if err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected