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:
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{}{}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue