后端新增《蚕茧识别V2》模块
This commit is contained in:
@@ -5,6 +5,8 @@ from contextlib import contextmanager
|
||||
import psycopg
|
||||
from psycopg_pool import ConnectionPool
|
||||
|
||||
from utils.GlobalVariable import LOCAL_IP
|
||||
|
||||
logger = logging.getLogger("PGPool")
|
||||
logger.setLevel(logging.INFO)
|
||||
|
||||
@@ -66,7 +68,7 @@ class PGPool:
|
||||
|
||||
|
||||
pg_pool = PGPool(
|
||||
uri="postgresql://postgres:123456@ce_postgres/ktor2",
|
||||
uri="postgresql://postgres:123456@" + LOCAL_IP + "/ktor2",
|
||||
min_size=1,
|
||||
max_size=20,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user