Fix map initialization

This commit is contained in:
Fabian Reinartz 2015-09-01 18:06:22 +02:00
parent 4c90168130
commit ebf417a282

View file

@ -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
}