Feat(cycle-wait): Extra sleep to prevent clock desync bug

This commit is contained in:
2023-01-02 00:10:09 +08:00
parent fe698e3cd8
commit 651c6551b9

View File

@@ -40,6 +40,7 @@ def main():
if webhook_url != "":
requests.post(webhook_url, data=status_str)
print(status_str)
while True:
print_str = ""
@@ -114,6 +115,9 @@ def main():
refresh_jwt, access_jwt = update_refresh_jwt(refresh_jwt)
time.sleep(last_sleep_min*60/3)
# Extra sleep to prevent clock desync
time.sleep(60)
pass
def update_refresh_jwt(jwt: str) -> (str, str):