mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-28 15:09:39 -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 {
|
func NewTargetManager(sampleAppender storage.SampleAppender) *TargetManager {
|
||||||
tm := &TargetManager{
|
tm := &TargetManager{
|
||||||
sampleAppender: sampleAppender,
|
sampleAppender: sampleAppender,
|
||||||
targets: make(map[string][]*Target),
|
targets: map[string][]*Target{},
|
||||||
}
|
}
|
||||||
return tm
|
return tm
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue