fix db connections
This commit is contained in:
1 parent
3a6f787a78
commit
4401916104
4 files changed
+49
-129
No files matched your search
@@ -5,7 +5,6 @@ from httpx import AsyncClient
|
||||
|
||||
from app.core._config import PROJECT_HOST
|
||||
from app.core._crypto.signer import Signer
|
||||
from app.core._secrets import hot_seed
|
||||
from app.core.logger import make_log
|
||||
|
||||
|
||||
@@ -17,6 +16,8 @@ async def send_status(service: str, status: str):
|
||||
'status': status,
|
||||
}
|
||||
message_bytes = dumps(message).encode()
|
||||
# Lazy import to avoid triggering _secrets before DB is ready
|
||||
from app.core._secrets import hot_seed
|
||||
signer = Signer(hot_seed)
|
||||
message_signature = signer.sign(message_bytes)
|
||||
async with AsyncClient() as client:
|
||||
|
||||
Reference in new issue
Block a user