Skip to content

Commit

Permalink
Remove hcf.ClientClosed() from cassandra/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 Nov 7, 2024
1 parent fe6328c commit 21c86f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cassandra/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (

"github.com/gocql/gocql"
"k8s.io/klog/v2"
health "kmodules.xyz/client-go/tools/healthchecker"
)

type Client struct {
Expand Down Expand Up @@ -78,9 +77,8 @@ func (c *Client) PingCassandra() error {
return nil
}

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

0 comments on commit 21c86f6

Please sign in to comment.