From Threads to Multiprocess

This commit is contained in:
DomySh
2022-07-08 11:35:12 +02:00
parent 6e317defbf
commit 74e3e832b3
5 changed files with 76 additions and 62 deletions

View File

@@ -37,6 +37,7 @@ def JWT_SECRET(): return conf.get("secret")
@app.on_event("startup")
async def startup_event():
db.init()
firewall.init_updater()
if not JWT_SECRET(): conf.put("secret", secrets.token_hex(32))
await firewall.reload()