mirror of
https://github.com/spf13/viper
synced 2024-12-23 20:17:03 +00:00
minor comment typo fix
This commit is contained in:
parent
5197566d20
commit
146fa552dd
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ func (c *Client) acquireToken(role string, secret string) (string, error) {
|
||||||
return token, err
|
return token, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// this can be called before operations to ensure token is currentfg
|
// this can be called before operations to ensure token is current
|
||||||
func (c *Client) renewToken() (string, error) {
|
func (c *Client) renewToken() (string, error) {
|
||||||
if c.secret_expires {
|
if c.secret_expires {
|
||||||
if (c.secret_ttl.Seconds()+c.secret_acq_at > float64(time.Now().Unix())) && c.secret_ttl != 0 {
|
if (c.secret_ttl.Seconds()+c.secret_acq_at > float64(time.Now().Unix())) && c.secret_ttl != 0 {
|
||||||
|
|
Loading…
Reference in a new issue