Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
27
func
(ts ByID) Len() int {
return
len(ts) }
28
func
(ts ByID) Swap(i, j int) { ts[i], ts[j] = ts[j], ts[i] }
29
func
(ts ByID) Less(i, j int) bool {
return
ts[i].Id < ts[j].Id }
30
31
type
InstanceVersions
map
[uint64]uint64
Callers
1
Flush
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected