mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 16:17:25 +08:00
feat: integrate psycogreen for gevent compatibility in PostgreSQL (#12253)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user