mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 00:06:38 +00:00
limit to 10 open connections
This commit is contained in:
@@ -88,8 +88,8 @@ func NewSqlStore(ctx context.Context, db *gorm.DB, storeEngine types.Engine, met
|
||||
conns = 1
|
||||
}
|
||||
|
||||
sql.SetMaxOpenConns(conns)
|
||||
sql.SetMaxIdleConns(conns)
|
||||
sql.SetMaxOpenConns(10)
|
||||
sql.SetMaxIdleConns(10)
|
||||
sql.SetConnMaxLifetime(time.Hour)
|
||||
sql.SetConnMaxIdleTime(3 * time.Minute)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user