mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 08:37:56 +00:00
Fix lots of small nits in sc-network (#6028)
* Fix lots of small nits in sc-network * Update client/network/src/protocol/sync/blocks.rs Co-authored-by: Arkadiy Paronyan <arkady.paronyan@gmail.com> * Fix warning * Yes. The line width. Co-authored-by: Arkadiy Paronyan <arkady.paronyan@gmail.com>
This commit is contained in:
@@ -980,7 +980,9 @@ where
|
||||
let handler = request.connection.map_or(NotifyHandler::Any, NotifyHandler::One);
|
||||
|
||||
let request_id = self.next_request_id();
|
||||
self.peers.get_mut(&peer).map(|p| p.status = PeerStatus::BusyWith(request_id));
|
||||
if let Some(p) = self.peers.get_mut(&peer) {
|
||||
p.status = PeerStatus::BusyWith(request_id);
|
||||
}
|
||||
self.outstanding.insert(request_id, request);
|
||||
|
||||
let event = OutboundProtocol {
|
||||
|
||||
Reference in New Issue
Block a user