Skip to content

Commit

Permalink
fix MaxOpenConns setup
Browse files Browse the repository at this point in the history
Signed-off-by: igorm <theo.ptz@yandex.ru>
  • Loading branch information
igorm committed Sep 26, 2023
1 parent 798c568 commit e5cee44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func connector(cfg Configuration) (*sql.DB, error) {
conn = clickhouse.OpenDB(&options)

if cfg.MaxOpenConns != nil {
conn.SetMaxIdleConns(int(*cfg.MaxOpenConns))
conn.SetMaxOpenConns(int(*cfg.MaxOpenConns))
}
if cfg.MaxIdleConns != nil {
conn.SetMaxIdleConns(int(*cfg.MaxIdleConns))
Expand Down

0 comments on commit e5cee44

Please sign in to comment.