mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +00:00
revert open conns
This commit is contained in:
@@ -85,9 +85,7 @@ func NewSqlStore(ctx context.Context, db *gorm.DB, storeEngine Engine, metrics t
|
||||
conns = 1
|
||||
}
|
||||
|
||||
sql.SetMaxOpenConns(100)
|
||||
sql.SetMaxIdleConns(20)
|
||||
sql.SetConnMaxIdleTime(5 * time.Minute)
|
||||
sql.SetMaxOpenConns(conns)
|
||||
|
||||
log.WithContext(ctx).Infof("Set max open db connections to %d", conns)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user