mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 13:15:41 +00:00
Clean up sc-network (#9761)
* Clean up sc-network - Avoid using clone() for the Copy type `PeerId`. - Use `find_map` for `filter_map` and `next`. - Use `Self`. * More on Copy types * Cargo +nightly fmt --all * More .. * fmt * Revert vec![default_notif_handshake_message]
This commit is contained in:
@@ -142,7 +142,7 @@ impl OutChannels {
|
||||
let metrics =
|
||||
if let Some(registry) = registry { Some(Metrics::register(registry)?) } else { None };
|
||||
|
||||
Ok(OutChannels { event_streams: Vec::new(), metrics: Arc::new(metrics) })
|
||||
Ok(Self { event_streams: Vec::new(), metrics: Arc::new(metrics) })
|
||||
}
|
||||
|
||||
/// Adds a new [`Sender`] to the collection.
|
||||
|
||||
Reference in New Issue
Block a user