mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 10:09:08 +02:00
multi: update linter, fix new issues
This commit is contained in:
@ -517,7 +517,7 @@ func (t *TLSManager) loadEphemeralCertificate() ([]byte, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
t.setEphemeralSettings(keyBytes, certBytes, t.cfg.TLSCertPath+".tmp")
|
||||
t.setEphemeralSettings(keyBytes, certBytes)
|
||||
|
||||
err = cert.WriteCertPair(tmpCertPath, "", certBytes, keyBytes)
|
||||
if err != nil {
|
||||
@ -583,9 +583,7 @@ func (t *TLSManager) LoadPermanentCertificate(
|
||||
|
||||
// setEphemeralSettings sets the TLSManager settings needed when an ephemeral
|
||||
// certificate is created.
|
||||
func (t *TLSManager) setEphemeralSettings(keyBytes, certBytes []byte,
|
||||
certPath string) {
|
||||
|
||||
func (t *TLSManager) setEphemeralSettings(keyBytes, certBytes []byte) {
|
||||
t.ephemeralKey = keyBytes
|
||||
t.ephemeralCert = certBytes
|
||||
t.ephemeralCertPath = t.cfg.TLSCertPath + ".tmp"
|
||||
|
Reference in New Issue
Block a user