-
Notifications
You must be signed in to change notification settings - Fork 28
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
fix: remove strange Ping
#523
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #523 +/- ##
==========================================
+ Coverage 65.81% 65.83% +0.02%
==========================================
Files 279 279
Lines 38057 38044 -13
==========================================
Hits 25048 25048
+ Misses 11212 11201 -11
+ Partials 1797 1795 -2
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why, but I've confirmed to stop using Ping()
in history. So I agree to remove Ping
.
- Make
Ping()
and use it for monitoring the connection alive - Refator
IPCVal
toSocketVal
- Refactor to divide
SocketVal
intoSignerRemote
andSignerValidatorEndpoint
- Refactor
SignerValidatorEndpoint
toSignerListenerEndpoint
and stop usingPing()
In addition, the current Ping()
is a strange implementation since the first version.
https://github.com/tendermint/tendermint/pull/3370/files#diff-f26cb79f69b0f0824a4e09e13ce477efdfc05d9ae1101d6cee5eae8ed09539edR54-R63
Description
Ping
function is used in only test. But it always returns nil which is meaningless. So I removed it. Removing has no problem for spec.https://github.com/informalsystems/tendermint-rs/blob/main/docs/architecture/adr-011-validator-crate.md
Ping
History:It seemed to be left behind after repeated refactorings.