Skip to content

Commit fc4a7df

Browse files
refactor: recycle db connection to avoid "the connection is closed" exception.
1 parent 063920c commit fc4a7df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/maxkb/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def get_db_setting(self) -> dict:
6363
"POOL_OPTIONS": {
6464
"POOL_SIZE": 20,
6565
"MAX_OVERFLOW": int(self.get('DB_MAX_OVERFLOW')),
66-
'RECYCLE': 1800,
67-
'TIMEOUT': 30
66+
"RECYCLE": 1800,
67+
"TIMEOUT": 30
6868
}
6969
}
7070

0 commit comments

Comments
 (0)