Skip to content

Commit

Permalink
Update client.go
Browse files Browse the repository at this point in the history
Signed-off-by: Sabbir <[email protected]>
  • Loading branch information
sabbir-hossain70 committed Sep 11, 2024
1 parent 7d406c2 commit b76ea0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cassandra/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cassandra

import (
"fmt"
health "kmodules.xyz/client-go/tools/healthchecker"
"log"

"github.com/gocql/gocql"
Expand Down Expand Up @@ -79,3 +80,10 @@ func (c *Client) PingCassandra() error {
}
return nil
}

func (c *Client) closeCassandraClient(hcf *health.HealthCard) {
if c != nil {
c.Close()
}
hcf.ClientClosed()
}

0 comments on commit b76ea0e

Please sign in to comment.