mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-04-08 14:35:55 +02:00
Avoid vet warning: return copies lock value.
This commit is contained in:
parent
e7e51aa4fa
commit
ffa2701914
@ -91,12 +91,12 @@ type RuntimeConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func prepare_runcfg() RuntimeConfig {
|
func prepare_runcfg() RuntimeConfig {
|
||||||
r := RuntimeConfig{}
|
return RuntimeConfig{
|
||||||
r.Router = nil
|
Router: nil,
|
||||||
r.CollectManager = nil
|
CollectManager: nil,
|
||||||
r.SinkManager = nil
|
SinkManager: nil,
|
||||||
r.ReceiveManager = nil
|
ReceiveManager: nil,
|
||||||
return r
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//// Structure of the configuration file
|
//// Structure of the configuration file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user