Skip to content

Commit

Permalink
fix: max connections for warehouse slaves (#3341)
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr committed May 17, 2023
1 parent 20a0c55 commit b355eb2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions warehouse/warehouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -1604,10 +1604,6 @@ func setupDB(ctx context.Context, connInfo string) error {
return err
}

if isStandAloneSlave() {
dbHandle.SetMaxOpenConns(1)
}

if err = dbHandle.PingContext(ctx); err != nil {
return fmt.Errorf("could not ping WH db: %w", err)
}
Expand Down

0 comments on commit b355eb2

Please sign in to comment.