Skip to content
Snippets Groups Projects
Commit 418edcfb authored by Pierre Krieger's avatar Pierre Krieger Committed by André Silva
Browse files

Don't print dozens of the times the handler init warning (#2089)

parent 90d3fe89
Branches
No related merge requests found
......@@ -488,9 +488,11 @@ where
ProtocolState::Init { substreams, mut init_deadline } => {
match init_deadline.poll() {
Ok(Async::Ready(())) =>
Ok(Async::Ready(())) => {
init_deadline.reset(Instant::now() + Duration::from_secs(60));
error!(target: "sub-libp2p", "Handler initialization process is too long \
with {:?}", self.remote_peer_id),
with {:?}", self.remote_peer_id)
},
Ok(Async::NotReady) => {}
Err(_) => error!(target: "sub-libp2p", "Tokio timer has errored")
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment