Raise connection pool for db
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
eb28ca0878
commit
478e89b140
2 changed files with 4 additions and 4 deletions
|
@ -4,9 +4,9 @@ RUN apk update && apk add git \
|
||||||
build-base \
|
build-base \
|
||||||
curl \
|
curl \
|
||||||
bash \
|
bash \
|
||||||
openssl3 \
|
openssl \
|
||||||
openssl3-dev \
|
openssl-dev \
|
||||||
openssl3-libs-static \
|
openssl-libs-static \
|
||||||
sqlite-dev \
|
sqlite-dev \
|
||||||
sqlite-static
|
sqlite-static
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ var GroupMedia = initTable[int, string]()
|
||||||
let AdminID = getEnv("ADMIN_ID").split(",")
|
let AdminID = getEnv("ADMIN_ID").split(",")
|
||||||
|
|
||||||
let dbConn* = getDb()
|
let dbConn* = getDb()
|
||||||
var connPool = newPool[DbConn](15)
|
var connPool = newPool[DbConn](100)
|
||||||
|
|
||||||
# Functions to assist adding/deleting entries from tables
|
# Functions to assist adding/deleting entries from tables
|
||||||
func NewCensoredData*(ftype = ""; fhash = ""; fileid = ""; time = 0.0; caption = ""):
|
func NewCensoredData*(ftype = ""; fhash = ""; fileid = ""; time = 0.0; caption = ""):
|
||||||
|
|
Loading…
Reference in a new issue