Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protect remaining client methods from nil client #52

Merged
merged 1 commit into from
Feb 16, 2018
Merged

Protect remaining client methods from nil client #52

merged 1 commit into from
Feb 16, 2018

Conversation

ods94065
Copy link

@ods94065 ods94065 commented Feb 16, 2018

This addresses #51 . It turns all remaining public statsd.Client methods into no-ops if the client is nil:

  • SetWriteTimeout
  • Flush
  • ServiceCheck
  • SimpleServiceCheck

I also added a nil test on Event to make sure it's covered, just in case SimpleEvent doesn't use Event in the future.

This turns all remaining public methods into no-ops if the client is nil:

- SetWriteTimeout
- Flush
- ServiceCheck
- SimpleServiceCheck

Also adding a nil test on Event to make sure it's covered, just in
case SimpleEvent doesn't use Event in the future.
@masci masci added this to the 2.1 milestone Feb 16, 2018
Copy link
Contributor

@masci masci left a comment

Choose a reason for hiding this comment

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

Thanks! 👍

@masci masci merged commit 1db03a3 into DataDog:master Feb 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants