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
commit 63a0b8ba79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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()