rust-libp2p
rust-libp2p copied to clipboard
feat(ping): make the ignoring of the first error configurable
Description
Be able to configure, the fact to ignore or not the first error of ping::Handler::poll.
Motivation
In our project, we need to rapidly detect that an error may have occurred with ping. However, like it is described here, for interoperability reasons with the Javascript libp2p, the first error is silenced. We personally don't use the Javascript implementation so we would like to be able to catch the first error.
Current Implementation
There is no need to not ignore the first error.
Are you planning to do it yourself in a pull request ?
Yes