mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 06:29:42 -08:00
Fix map initialization
This commit is contained in:
parent
4c90168130
commit
ebf417a282
|
@ -66,7 +66,7 @@ type TargetManager struct {
|
|||
func NewTargetManager(sampleAppender storage.SampleAppender) *TargetManager {
|
||||
tm := &TargetManager{
|
||||
sampleAppender: sampleAppender,
|
||||
targets: make(map[string][]*Target),
|
||||
targets: map[string][]*Target{},
|
||||
}
|
||||
return tm
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue