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

Method Swap

kv/memberlist/memberlist_client_test.go:176–176  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

174
175func (ts sortableUint32) Len() int { return len(ts) }
176func (ts sortableUint32) Swap(i, j int) { ts[i], ts[j] = ts[j], ts[i] }
177func (ts sortableUint32) Less(i, j int) bool { return ts[i] < ts[j] }
178
179const key = "test"

Callers 3

watchConfigChannelMethod · 0.45
setNewPrimaryClientMethod · 0.45
flushMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected