1
1
Fork 0
mirror of https://git.sr.ht/~emersion/tlstunnel synced 2024-04-28 04:45:01 +02:00

Fix initial capacity of new managed names map

This commit is contained in:
Simon Ser 2023-11-20 15:36:04 +01:00
parent e70de7eed9
commit bbdaec6b98

View File

@ -171,7 +171,7 @@ func (srv *Server) Replace(old *Server) error {
}
// Cleanup managed certs which are no longer used
managed := make(map[string]struct{}, len(old.ManagedNames))
managed := make(map[string]struct{}, len(srv.ManagedNames))
for _, name := range srv.ManagedNames {
managed[name] = struct{}{}
}