File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ func NewAuthHeaderProvider(privKey ed25519.PrivateKey, config *AuthHeaderProvide
55
55
}
56
56
57
57
creds := & authHeaderPerRPCredentials {
58
- privKey : privKey ,
59
- headerTTL : config .HeaderTTL ,
60
- version : config .Version ,
58
+ privKey : privKey ,
59
+ headerTTL : config .HeaderTTL ,
60
+ version : config .Version ,
61
61
requireTransportSecurity : config .RequireTransportSecurity ,
62
62
}
63
63
// Initialize the headers ~ lastUpdated is 0 so the headers are generated on the first call
@@ -77,7 +77,7 @@ func (a *authHeaderPerRPCredentials) RequireTransportSecurity() bool {
77
77
return a .requireTransportSecurity
78
78
}
79
79
80
- // get headers returns the auth headers, refreshing them if they are expired
80
+ // getHeaders returns the auth headers, refreshing them if they are expired
81
81
func (a * authHeaderPerRPCredentials ) getHeaders () map [string ]string {
82
82
if time .Since (a .lastUpdated ) > a .headerTTL {
83
83
a .refresh ()
@@ -104,7 +104,6 @@ func (a *authHeaderPerRPCredentials) refresh() {
104
104
}
105
105
// Set the lastUpdated time to now
106
106
a .lastUpdated = timeNow
107
- return
108
107
}
109
108
110
109
// AuthHeaderConfig configures buildAuthHeadersV2
You can’t perform that action at this time.
0 commit comments