From 35131c4ff8406bed158d3cad88332bd30803936f Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Sat, 11 Sep 2021 17:09:43 +0300 Subject: [PATCH] feat: add limit for max connections for poll --- db/db.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/db.go b/db/db.go index e3edb7e..1d8bfea 100644 --- a/db/db.go +++ b/db/db.go @@ -19,5 +19,7 @@ func Init() { log.Panicln(err) } + Pool.Config().MaxConns = 5 + log.Println("database - online") }