MCPcopy
hub / github.com/grafana/dskit / Swap

Method Swap

ring/model.go:28–28  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

26
27func (ts ByID) Len() int { return len(ts) }
28func (ts ByID) Swap(i, j int) { ts[i], ts[j] = ts[j], ts[i] }
29func (ts ByID) Less(i, j int) bool { return ts[i].Id < ts[j].Id }
30
31type InstanceVersions map[uint64]uint64

Callers 1

FlushMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected