MCPcopy
hub / github.com/grafana/tempo / ShouldUpdate

Method ShouldUpdate

modules/distributor/queue/queue.go:131–133  ·  view source on GitHub ↗

ShouldUpdate returns true if the queue size or worker count (alive or total) has changed

(size, workerCount int)

Source from the content-addressed store, hash-verified

129
130// ShouldUpdate returns true if the queue size or worker count (alive or total) has changed
131func (m *Queue[T]) ShouldUpdate(size, workerCount int) bool {
132 return m.size != size || m.workerCount != workerCount
133}
134
135func (m *Queue[T]) Shutdown(ctx context.Context) error {
136 // Call to stopWorkers only once

Calls

no outgoing calls