Skip to content

Commit

Permalink
Merge pull request #865 from ydb-platform/refresh-interval
Browse files Browse the repository at this point in the history
* Changed period for re-fresh static credentials token from `1/2` to …
  • Loading branch information
asmyasnikov authored Oct 22, 2023
2 parents fb20e38 + 5bcb7f5 commit f56f07b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Changed period for re-fresh static credentials token from `1/2` to `1/10` to expiration time

## v3.53.4
* Downgrade `golang.org/x/net` from `0.17.0` to `0.15.0`
* Downgrade `golang.org/x/sys` from `v0.13.0` to `v0.12.0`
Expand Down
2 changes: 1 addition & 1 deletion internal/credentials/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (c *Static) Token(ctx context.Context) (token string, err error) {
return "", xerrors.WithStackTrace(err)
}

c.requestAt = time.Now().Add(time.Until(expiresAt) / 2)
c.requestAt = time.Now().Add(time.Until(expiresAt) / 10)
c.token = result.GetToken()

return c.token, nil
Expand Down

0 comments on commit f56f07b

Please sign in to comment.