From 2e782dfdcb5e16a08158467c2e0f232bf223480f Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Fri, 24 Jun 2022 01:50:13 +0500 Subject: [PATCH] rm defer comments --- weed/security/tls.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/weed/security/tls.go b/weed/security/tls.go index bbdf8c28d..137b7d06a 100644 --- a/weed/security/tls.go +++ b/weed/security/tls.go @@ -38,7 +38,6 @@ func LoadServerTLS(config *util.ViperProxy, component string) (grpc.ServerOption glog.Warningf("pemfile.NewProvider(%v) failed: %v", serverOptions, err) return nil, nil } - //defer serverIdentityProvider.Close() serverRootOptions := pemfile.Options{ RootFile: config.GetString("grpc.ca"), @@ -49,7 +48,7 @@ func LoadServerTLS(config *util.ViperProxy, component string) (grpc.ServerOption glog.Warningf("pemfile.NewProvider(%v) failed: %v", serverRootOptions, err) return nil, nil } - // defer serverIdentityProvider.Close() + // Start a server and create a client using advancedtls API with Provider. options := &advancedtls.ServerOptions{ IdentityOptions: advancedtls.IdentityCertificateOptions{