mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Undo changes for rpc/handler from master
This commit is contained in:
@@ -12,7 +12,7 @@ use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade, UpgradeError};
|
|||||||
use libp2p::swarm::protocols_handler::{
|
use libp2p::swarm::protocols_handler::{
|
||||||
KeepAlive, ProtocolsHandler, ProtocolsHandlerEvent, ProtocolsHandlerUpgrErr, SubstreamProtocol,
|
KeepAlive, ProtocolsHandler, ProtocolsHandlerEvent, ProtocolsHandlerUpgrErr, SubstreamProtocol,
|
||||||
};
|
};
|
||||||
use slog::{crit, debug, error, warn};
|
use slog::{crit, debug, error};
|
||||||
use smallvec::SmallVec;
|
use smallvec::SmallVec;
|
||||||
use std::collections::hash_map::Entry;
|
use std::collections::hash_map::Entry;
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
@@ -319,12 +319,8 @@ where
|
|||||||
substream: out,
|
substream: out,
|
||||||
request,
|
request,
|
||||||
};
|
};
|
||||||
if let Some(_) = self
|
self.outbound_substreams
|
||||||
.outbound_substreams
|
.insert(id, (awaiting_stream, delay_key));
|
||||||
.insert(id, (awaiting_stream, delay_key))
|
|
||||||
{
|
|
||||||
warn!(self.log, "Duplicate outbound substream id"; "id" => format!("{:?}", id));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
_ => { // a response is not expected, drop the stream for all other requests
|
_ => { // a response is not expected, drop the stream for all other requests
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user