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

Method ShouldUnregisterOnShutdown

ring/lifecycler.go:1057–1059  ·  view source on GitHub ↗

ShouldUnregisterOnShutdown returns if unregistering should be skipped on shutdown.

()

Source from the content-addressed store, hash-verified

1055
1056// ShouldUnregisterOnShutdown returns if unregistering should be skipped on shutdown.
1057func (i *Lifecycler) ShouldUnregisterOnShutdown() bool {
1058 return i.unregisterOnShutdown.Load()
1059}
1060
1061// SetUnregisterOnShutdown enables/disables unregistering on shutdown.
1062func (i *Lifecycler) SetUnregisterOnShutdown(enabled bool) {

Callers 1

stoppingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected