1
1
mirror of https://git.sr.ht/~emersion/tlstunnel synced 2024-11-19 15:53:50 +01: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

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