Increase number of idle connections on postgres
This commit is contained in:
parent
f534939612
commit
b094a1e5f2
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue