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

rpc: clean up unused non-default websocket options #7713

Merged
merged 7 commits into from
Jan 27, 2022

Conversation

creachadair
Copy link
Contributor

Unexport and/or remove the WSOptions types, which were never used with non-default values except in our own tests. Fix up the tests to not require the options.

Searches of cs.github.com reveal no non-default use.

M. J. Fromberger added 2 commits January 27, 2022 11:05
These are only ever used with the defaults, except in our own tests.  A search
of cs.github.com shows no other callers.

The use in the test was solely to bug out the go-metrics package so its
goroutines don't trigger the leak checker. Use the package's own flag for that
purpose instead. Note that calling "Stop" on the metric helps, but is not
sufficient -- the Stop does not wait for its goroutine to exit.
These options are only ever used with defaults, except in tests.  A search of
cs.github.com reveals no other use.
@creachadair creachadair merged commit 557d863 into master Jan 27, 2022
@creachadair creachadair deleted the mjf/rpc-cleanup-18 branch January 27, 2022 19:49
tychoish pushed a commit to tychoish/tendermint that referenced this pull request Jan 28, 2022
…#7713)

These are only ever used with the defaults, except in our own tests.  A search
of cs.github.com shows no other callers.

The use in the test was solely to bug out the go-metrics package so its
goroutines don't trigger the leak checker. Use the package's own flag for that
purpose instead. Note that calling "Stop" on the metric helps, but is not
sufficient -- the Stop does not wait for its goroutine to exit.
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