diff --git a/pkg/beholder/auth.go b/pkg/beholder/auth.go index 6e589745b..1867e5334 100644 --- a/pkg/beholder/auth.go +++ b/pkg/beholder/auth.go @@ -55,9 +55,9 @@ func NewAuthHeaderProvider(privKey ed25519.PrivateKey, config *AuthHeaderProvide } creds := &authHeaderPerRPCredentials{ - privKey: privKey, - headerTTL: config.HeaderTTL, - version: config.Version, + privKey: privKey, + headerTTL: config.HeaderTTL, + version: config.Version, requireTransportSecurity: config.RequireTransportSecurity, } // Initialize the headers ~ lastUpdated is 0 so the headers are generated on the first call @@ -104,7 +104,6 @@ func (a *authHeaderPerRPCredentials) refresh() { } // Set the lastUpdated time to now a.lastUpdated = timeNow - return } // AuthHeaderConfig configures buildAuthHeadersV2