mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
rm defer comments
This commit is contained in:
parent
7efaafb0ee
commit
2e782dfdcb
|
@ -38,7 +38,6 @@ func LoadServerTLS(config *util.ViperProxy, component string) (grpc.ServerOption
|
||||||
glog.Warningf("pemfile.NewProvider(%v) failed: %v", serverOptions, err)
|
glog.Warningf("pemfile.NewProvider(%v) failed: %v", serverOptions, err)
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
//defer serverIdentityProvider.Close()
|
|
||||||
|
|
||||||
serverRootOptions := pemfile.Options{
|
serverRootOptions := pemfile.Options{
|
||||||
RootFile: config.GetString("grpc.ca"),
|
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)
|
glog.Warningf("pemfile.NewProvider(%v) failed: %v", serverRootOptions, err)
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
// defer serverIdentityProvider.Close()
|
|
||||||
// Start a server and create a client using advancedtls API with Provider.
|
// Start a server and create a client using advancedtls API with Provider.
|
||||||
options := &advancedtls.ServerOptions{
|
options := &advancedtls.ServerOptions{
|
||||||
IdentityOptions: advancedtls.IdentityCertificateOptions{
|
IdentityOptions: advancedtls.IdentityCertificateOptions{
|
||||||
|
|
Loading…
Reference in a new issue