Skip to content

Commit

Permalink
fix: ckman blocked when ck node from online change to offline
Browse files Browse the repository at this point in the history
  • Loading branch information
YenchangChan committed Jan 6, 2024
1 parent 2bd2c73 commit 1dcc7c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/ck.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 1dcc7c9

Please sign in to comment.