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

Method GetTokens

ring/basic_lifecycler.go:173–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171}
172
173func (l *BasicLifecycler) GetTokens() Tokens {
174 l.currState.RLock()
175 defer l.currState.RUnlock()
176
177 if l.currInstanceDesc == nil {
178 return Tokens{}
179 }
180
181 return l.currInstanceDesc.GetTokens()
182}
183
184func (l *BasicLifecycler) GetTokenGenerator() TokenGenerator {
185 return l.tokenGenerator

Callers 3

startingMethod · 0.95
verifyTokensMethod · 0.95
updateInstanceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected