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

Struct RoundRobinPicker

internal/routing/shard_picker.go:34–36  ·  view source on GitHub ↗

*─────────────────────────────── Round-robin (default) ────────────────────────────────*/

Source from the content-addressed store, hash-verified

32────────────────────────────────*/
33
34type RoundRobinPicker struct {
35 cnt atomic.Uint32
36}
37
38func (p *RoundRobinPicker) Next(total int) int {
39 if total == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected