feat: integrate psycogreen for gevent compatibility in PostgreSQL (#12253)

Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
-LAN-
2024-12-31 14:45:59 +08:00
committed by GitHub
parent 634b382a3d
commit 63a0b8ba79
3 changed files with 17 additions and 44 deletions

View File

@@ -25,6 +25,10 @@ else:
# grpc gevent
grpc_gevent.init_gevent()
import psycogreen.gevent # type: ignore
psycogreen.gevent.patch_psycopg()
from app_factory import create_app
app = create_app()