lnd: refactor getTLSConfig
This commit is contained in:
2 files changed
+215
-135
No files matched your search
+2
-1
@@ -71,7 +71,8 @@ func TestTLSAutoRegeneration(t *testing.T) {
|
||||
TLSCertDuration: 42 * time.Hour,
|
||||
RPCListeners: rpcListeners,
|
||||
}
|
||||
_, _, _, cleanUp, err := getTLSConfig(cfg)
|
||||
tlsManager := NewTLSManager(cfg)
|
||||
_, _, _, cleanUp, err := tlsManager.getConfig()
|
||||
if err != nil {
|
||||
t.Fatalf("couldn't retrieve TLS config")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user