From e5cee44a8a43ce05178ceb3c7f9e3f03f93aa959 Mon Sep 17 00:00:00 2001 From: igorm Date: Tue, 26 Sep 2023 00:24:03 +0300 Subject: [PATCH] fix MaxOpenConns setup Signed-off-by: igorm --- storage/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/store.go b/storage/store.go index 14a559c..19eb4bb 100644 --- a/storage/store.go +++ b/storage/store.go @@ -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))