Skip to content

Commit

Permalink
Merge pull request #204 from Sunwoo-Shin/feature/add-close-func-for-z…
Browse files Browse the repository at this point in the history
…k-conn

Add close function for zk connection
  • Loading branch information
beltran authored Nov 18, 2022
2 parents a65d1b7 + 3baee76 commit d636b2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ hive.jks
dhive
client.cer.key
client.cer.pem

# .idea
.idea/
1 change: 1 addition & 0 deletions hive.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ func ConnectZookeeper(hosts string, auth string,
if err != nil {
return nil, err
}
defer zkConn.Close()

hsInfos, _, err := zkConn.Children("/" + configuration.ZookeeperNamespace)
if err != nil {
Expand Down

0 comments on commit d636b2d

Please sign in to comment.