Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Tsang committed Jan 3, 2025
1 parent 0c36b92 commit 8b90709
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions go/cluster_management/client_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
)

type ClientUtil struct {
ctx *context.Context
clients map[string]*dsql.Client
}

Expand All @@ -28,12 +27,7 @@ func (clientUtil *ClientUtil) GetInstance(region string) (client *dsql.Client, e
_, isExists := clientUtil.clients[region]

if !isExists {
if clientUtil.ctx == nil {
ctx := context.Background()
clientUtil.ctx = &ctx
}

cfg, err := config.LoadDefaultConfig(*clientUtil.ctx)
cfg, err := config.LoadDefaultConfig(context.Background())
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 8b90709

Please sign in to comment.