-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tcp_sink: don't hang on Flush() if reconnecting and add Options
This fixes a bug where the TCP Sink would hang indefinitely on Flush() if it was unable to reconnect. It also adds the SinkOption interface for configuring the TCP Sink, previously could only be done via environment variables (it still defaults to using env vars). This changes the function signature of NewTCPStatsdSink(), but the change should not be breaking since the new "opts" argument is variadic. This also significantly increases the code coverage of the TCP Sink tests.
- Loading branch information
Charlie Vieth
committed
Mar 31, 2020
1 parent
59f0da0
commit 1b56639
Showing
4 changed files
with
568 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.