Skip to content

Commit

Permalink
myshoes will check instance created while 5 minutes, So token needs t…
Browse files Browse the repository at this point in the history
…o live 5 minutes
  • Loading branch information
whywaita committed Jan 28, 2022
1 parent 7ae8aba commit 51b1cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gh/token_registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func generateRunnerRegisterToken(ctx context.Context, gheDomain string, installa
}

func setRunnerRegisterTokenCache(installationID int64, scope, token string, expiresAt time.Time) {
expiresDuration := time.Until(expiresAt.Add(-time.Minute))
expiresDuration := time.Until(expiresAt.Add(-6 * time.Minute))

cacheRegistrationToken.Set(getCacheKeyRegistrationToken(installationID, scope), token, expiresDuration)
}
Expand Down

0 comments on commit 51b1cb7

Please sign in to comment.