Skip to content

Commit 508fe7c

Browse files
committed
once
1 parent 62e6e0c commit 508fe7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/inputs/prometheus/target_allocator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ func (tam *TargetAllocatorManager) Run() error {
178178
return nil
179179
}
180180
func (tam *TargetAllocatorManager) Shutdown() {
181-
tam.manager.Shutdown()
182181
tam.shutdownOnce.Do(func() {
182+
tam.manager.Shutdown()
183183
close(tam.shutdownCh)
184184
})
185185
}

0 commit comments

Comments
 (0)