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

Function NewInstanceRegisterDelegate

ring/basic_lifecycler_delegates.go:161–166  ·  view source on GitHub ↗
(state InstanceState, tokenCount int)

Source from the content-addressed store, hash-verified

159}
160
161func NewInstanceRegisterDelegate(state InstanceState, tokenCount int) InstanceRegisterDelegate {
162 return InstanceRegisterDelegate{
163 registerState: state,
164 tokenCount: tokenCount,
165 }
166}
167
168func (d InstanceRegisterDelegate) OnRingInstanceRegister(l *BasicLifecycler, ringDesc Desc, instanceExists bool, _ string, instanceDesc InstanceDesc) (InstanceState, Tokens) {
169 // Keep the existing tokens if any, otherwise start with a clean situation.

Calls

no outgoing calls