fix(agent): uninitialized map panic error

This commit is contained in:
Alessandro De Blasis 2022-09-21 09:25:54 +01:00
parent 60c7c831c6
commit fc0dd92dcf
1 changed files with 1 additions and 0 deletions

View File

@ -415,6 +415,7 @@ func New(bd BaseDeps) (*Agent, error) {
checkGRPCs: make(map[structs.CheckID]*checks.CheckGRPC),
checkDockers: make(map[structs.CheckID]*checks.CheckDocker),
checkAliases: make(map[structs.CheckID]*checks.CheckAlias),
checkOSServices: make(map[structs.CheckID]*checks.CheckOSService),
eventCh: make(chan serf.UserEvent, 1024),
eventBuf: make([]*UserEvent, 256),
joinLANNotifier: &systemd.Notifier{},