Make sure "clientsMap" is updated so all clients are closed on shutdown.

This commit is contained in:
Joachim Bauch 2024-04-23 10:37:15 +02:00
parent 952b8ae460
commit bf68a15943
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -490,6 +490,7 @@ func (c *GrpcClients) loadTargetsStatic(config *goconf.ConfigFile, fromReload bo
entry, found := clientsMap[target]
if !found {
entry = &grpcClientsList{}
clientsMap[target] = entry
}
entry.clients = append(entry.clients, client)
clients = append(clients, client)