refactor(twitter): reduce token lock time from 24h to 1h (close #17580) (#19274)

Co-authored-by: AiraNadih <AiraNadih@users.noreply.github.com>
This commit is contained in:
AiraNadih
2025-06-04 22:45:53 +08:00
committed by GitHub
co-authored by AiraNadih
parent fef1a170e0
commit 89fe12969f
+1 -1
View File
@@ -203,7 +203,7 @@ export const twitterGot = async (
}
}
logger.debug(`twitter debug: delete twitter cookie for token ${auth.token} with status ${response.status}, remaining tokens: ${config.twitter.authToken?.length}`);
await cache.set(`${lockPrefix}${auth.token}`, '1', 86400);
await cache.set(`${lockPrefix}${auth.token}`, '1', 3600);
}
} else {
logger.debug(`twitter debug: unlock twitter cookie with success for token ${auth.token}`);