Fix connection issue to multiple databases.

Co-Authored-By: Andrii Skomorokhov <andrii.skomorokhov@percona.com>
Signed-off-by: Denys Kondratenko <denys.kondratenko@percona.com>
This commit is contained in:
Denys Kondratenko 2022-06-23 11:11:27 +02:00 committed by GitHub
parent 075dc6d575
commit 1273715d11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ func NewServer(dsn string, opts ...ServerOpt) (*Server, error) {
return nil, err
}
db.SetMaxOpenConns(1)
db.SetMaxIdleConns(1)
db.SetMaxIdleConns(-1)
level.Info(logger).Log("msg", "Established new database connection", "fingerprint", fingerprint)