Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/grafana/dskit
/ getTokens
Method
getTokens
ring/lifecycler.go:384–388 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
382
}
383
384
func
(i *Lifecycler) getTokens() Tokens {
385
i.stateMtx.RLock()
386
defer
i.stateMtx.RUnlock()
387
return
i.tokens
388
}
389
390
func
(i *Lifecycler) setTokens(tokens Tokens) {
391
i.stateMtx.Lock()
Callers
7
checkRingHealthForReadiness
Method · 0.95
compareTokens
Method · 0.95
autoJoin
Method · 0.95
updateConsul
Method · 0.95
TestLifecycler_ShouldHandleInstanceAbruptlyRestarted
Function · 0.95
TestLifecycler_HeartbeatAfterBackendReset
Function · 0.95
TestRestartIngester_NoUnregister_LongHeartbeat
Function · 0.95
Calls
no outgoing calls
Tested by
3
TestLifecycler_ShouldHandleInstanceAbruptlyRestarted
Function · 0.76
TestLifecycler_HeartbeatAfterBackendReset
Function · 0.76
TestRestartIngester_NoUnregister_LongHeartbeat
Function · 0.76