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:
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
Block a user