Skip to content

Commit

Permalink
update zk client
Browse files Browse the repository at this point in the history
Signed-off-by: Rudro-25 <[email protected]>
  • Loading branch information
Rudro-25 committed Aug 9, 2024
1 parent f17f15a commit 0e44a89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zookeeper/kubedb_client_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const (
type KubeDBClientBuilder struct {
kc client.Client
db *dbapi.ZooKeeper
ctx context.Context
podName string
url string
}
Expand All @@ -56,6 +57,11 @@ func (o *KubeDBClientBuilder) WithURL(url string) *KubeDBClientBuilder {
return o
}

func (o *KubeDBClientBuilder) WithContext(ctx context.Context) *KubeDBClientBuilder {
o.ctx = ctx
return o
}

func (o *KubeDBClientBuilder) GetZooKeeperClient(ctx context.Context) (*Client, error) {
var err error
if o.podName != "" {
Expand Down

0 comments on commit 0e44a89

Please sign in to comment.