mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +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
|
conns = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
sql.SetMaxOpenConns(100)
|
sql.SetMaxOpenConns(conns)
|
||||||
sql.SetMaxIdleConns(20)
|
|
||||||
sql.SetConnMaxIdleTime(5 * time.Minute)
|
|
||||||
|
|
||||||
log.WithContext(ctx).Infof("Set max open db connections to %d", conns)
|
log.WithContext(ctx).Infof("Set max open db connections to %d", conns)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user