Skip to content

Conversation

@mchmarny
Copy link
Member

@mchmarny mchmarny commented Jul 23, 2020

Addresses the concern (##33) that users would create many instances of the client when using the default constructor (potentially expensive operation) by ensuring that the client.NewClient() factory method runs the client creation code only once per lifecycle and returns previously created instance for all subsequent invocation.

@mchmarny mchmarny requested review from amanbha and yaron2 July 23, 2020 19:50
@mchmarny mchmarny added the enhancement New feature or request label Jul 23, 2020
Copy link
Member

@yaron2 yaron2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@mchmarny mchmarny merged commit 08c05ad into master Jul 23, 2020
@mchmarny mchmarny deleted the mchmarny-issue-15-default-client-once branch August 12, 2020 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants