From 1dcc7c98b282e8039e22c4379083905f3b0f80e7 Mon Sep 17 00:00:00 2001 From: YenchangChan Date: Sun, 7 Jan 2024 00:43:23 +0800 Subject: [PATCH] fix: ckman blocked when ck node from online change to offline --- common/ck.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/ck.go b/common/ck.go index b4327a01..1a198ebe 100644 --- a/common/ck.go +++ b/common/ck.go @@ -89,8 +89,8 @@ func ConnectClickHouse(host string, database string, opt model.ConnetOption) (*C err := c.conn.Ping() if err == nil { return c.conn, nil - } else { - _ = c.conn.Close() + // } else { + //_ = c.conn.Close() } } conn := Conn{