mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-10-25 02:31:30 +00:00
The K8s DATABASE_URL env var uses postgresql:// which makes create_async_engine try to load psycopg2 (sync driver). Add _ensure_async_dsn() to convert postgresql:// and postgres:// to postgresql+asyncpg:// at engine creation time. asyncpg is already in dependencies.