Skip to content

Commit

Permalink
set max conn
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Jan 26, 2024
1 parent 6995c7c commit 0b8efa6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/enclave/storage/init/edgelessdb/edgelessdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ func connectToEdgelessDB(edbHost string, tlsCfg *tls.Config, logger gethlog.Logg
dsn := cfg.FormatDSN()
logger.Info(fmt.Sprintf("Configuring mysql connection: %s", dsn))
db, err := sql.Open("mysql", dsn)
db.SetMaxOpenConns(50)
if err != nil {
return nil, fmt.Errorf("failed to initialize mysql connection to edb - %w", err)
}
Expand Down

0 comments on commit 0b8efa6

Please sign in to comment.