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

Method ClearTokensOnShutdown

ring/lifecycler.go:1067–1069  ·  view source on GitHub ↗

ClearTokensOnShutdown returns if persisted tokens should be cleared on shutdown.

()

Source from the content-addressed store, hash-verified

1065
1066// ClearTokensOnShutdown returns if persisted tokens should be cleared on shutdown.
1067func (i *Lifecycler) ClearTokensOnShutdown() bool {
1068 return i.clearTokensOnShutdown.Load()
1069}
1070
1071// SetClearTokensOnShutdown enables/disables deletions of tokens on shutdown.
1072// Set to `true` in case one wants to clear tokens on shutdown which are

Callers 1

stoppingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected