Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bbfd609

Browse files
code refactored
1 parent 87dc5c3 commit bbfd609

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎src/authentication/__init__.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import hashlib
2+
import hmac
23
from functools import wraps
4+
35
from fastapi import Request
4-
import hmac
6+
7+
from src.authorize.authorize import NotAuthorized
58
from src.config import config_instance
6-
from src.database.account.account import Account
79
from src.database.apikeys.keys import ApiKeyModel, sessions
8-
from src.authorize.authorize import NotAuthorized
910

1011

1112
# TODO find a way to cache the results of this methods

‎src/prefetch/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ async def prefetch_endpoints() -> int:
1515
if response and response.get("status", False):
1616
await redis_cache.set(key=url, value=response)
1717
# this enables the gateway to process other requests while still prefetching urls
18-
await asyncio.sleep(delay=3)
18+
await asyncio.sleep(delay=10)
1919

2020
return len(responses)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /