close idle connections

dependabot/go_modules/go.uber.org/atomic-1.10.0
eval-exec 2022-03-20 21:23:20 +08:00
parent 983ee82c98
commit df71f59c0e
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ func ValidateSecureEndpoints(tlsInfo TLSInfo, eps []string) ([]string, error) {
if err != nil {
return nil, err
}
defer t.CloseIdleConnections()
var errs []string
var endpoints []string
for _, ep := range eps {