Skip to content

Commit

Permalink
clientv3: close client when getToken() fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mitake committed Sep 6, 2020
1 parent 5185706 commit 9f1dfa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clientv3/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ func newClient(cfg *Config) (*Client, error) {
client.cancel()
client.resolverGroup.Close()
cancel()
client.Close()

This comment has been minimized.

Copy link
@cfc4n

cfc4n Sep 7, 2020

That's my fault,Thank you very much..

This comment has been minimized.

Copy link
@mitake

mitake Sep 7, 2020

Author Owner

np at all, thanks a lot for your PRs!

return nil, err
}
cancel()
Expand Down

0 comments on commit 9f1dfa2

Please sign in to comment.