From 77aba12973a057cffec12f77e611339e42bf012c Mon Sep 17 00:00:00 2001 From: ryanlee-gemini Date: Wed, 18 Dec 2024 10:29:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=20access=20token=20=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- token/token_source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token/token_source.go b/token/token_source.go index 49b8393..2e936ed 100644 --- a/token/token_source.go +++ b/token/token_source.go @@ -188,7 +188,7 @@ func StartRefreshAccessToken(ctx context.Context, tokenSource oauth2.TokenSource panic("get token failed continuously for more than ten times") } consecutiveFailures++ - refreshMilliSec = int64(time.Second) + refreshMilliSec = 1000 // 1000ms后重试 } else { consecutiveFailures = 0 refreshMilliSec = getRefreshMilliSec(tk.ExpiresIn)