mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-08-12 14:02:59 +02:00
Move toTheSinks out of for loop
This commit is contained in:
@@ -100,8 +100,6 @@ func (sm *sinkManager) Start() {
|
||||
cclog.ComponentDebug("SinkManager", "DONE")
|
||||
}
|
||||
|
||||
for {
|
||||
|
||||
toTheSinks := func(p lp.CCMetric) {
|
||||
// Send received metric to all outputs
|
||||
cclog.ComponentDebug("SinkManager", "WRITE", p)
|
||||
@@ -112,6 +110,7 @@ func (sm *sinkManager) Start() {
|
||||
}
|
||||
}
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-sm.done:
|
||||
done()
|
||||
|
Reference in New Issue
Block a user