mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
fix typo in queue_manager.go comment (#5294)
Signed-off-by: tariqibrahim <tariq181290@gmail.com>
This commit is contained in:
parent
67da8e7b46
commit
ab8e9b7423
|
@ -529,7 +529,7 @@ func (s *shards) start(n int) {
|
||||||
// stop the shards; subsequent call to enqueue will return false.
|
// stop the shards; subsequent call to enqueue will return false.
|
||||||
func (s *shards) stop() {
|
func (s *shards) stop() {
|
||||||
// Attempt a clean shutdown, but only wait flushDeadline for all the shards
|
// Attempt a clean shutdown, but only wait flushDeadline for all the shards
|
||||||
// to cleanly exit. As we're doing RPCs, enqueue can block indefinately.
|
// to cleanly exit. As we're doing RPCs, enqueue can block indefinitely.
|
||||||
// We must be able so call stop concurrently, hence we can only take the
|
// We must be able so call stop concurrently, hence we can only take the
|
||||||
// RLock here.
|
// RLock here.
|
||||||
s.mtx.RLock()
|
s.mtx.RLock()
|
||||||
|
|
Loading…
Reference in a new issue