lnd: refactor getTLSConfig

This commit is contained in:
Orbital committed 2023-01-26 13:32:11 -06:00
1 parent 33a0cbe634
commit 7e03297b1b
2 files changed
+215 -135

No files matched your search

+2 -1
View File
@@ -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")
}