Increase number of idle connections on postgres

This commit is contained in:
DataHoarder 2023-05-27 22:14:30 +02:00
parent f534939612
commit b094a1e5f2
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -69,6 +69,8 @@ func OpenIndex(connStr string, consensus *sidechain.Consensus, difficultyByHeigh
return nil, err
}
index.handle.SetMaxIdleConns(8)
tx, err := index.handle.BeginTx(context.Background(), nil)
if err != nil {
return nil, err