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

Struct DefaultKeylessAggregator

internal/routing/aggregator.go:691–695  ·  view source on GitHub ↗

DefaultKeylessAggregator collects all results in an array, order doesn't matter.

Source from the content-addressed store, hash-verified

689
690// DefaultKeylessAggregator collects all results in an array, order doesn't matter.
691type DefaultKeylessAggregator struct {
692 mu sync.Mutex
693 results []interface{}
694 firstErr error
695}
696
697func (a *DefaultKeylessAggregator) add(result interface{}, err error) error {
698 if err != nil && a.firstErr == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected