feat: integrate psycogreen for gevent compatibility in PostgreSQL (#12253)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
634b382a3d
commit
63a0b8ba79
3 changed files with 17 additions and 44 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue