Ensure cumulus/bridges is ignored by formatter and run it (#1369)

This commit is contained in:
Gavin Wood
2023-09-03 15:11:26 +02:00
committed by GitHub
parent 2c3e869c38
commit bc6fca3c44
7 changed files with 20 additions and 18 deletions
+8 -6
View File
@@ -943,9 +943,10 @@ where
peers: HashSet<Multiaddr>,
) -> Result<(), String> {
let Some(set_id) = self.notification_protocol_ids.get(&protocol) else {
return Err(
format!("Cannot add peers to reserved set of unknown protocol: {}", protocol)
)
return Err(format!(
"Cannot add peers to reserved set of unknown protocol: {}",
protocol
))
};
let peers = self.split_multiaddr_and_peer_id(peers)?;
@@ -974,9 +975,10 @@ where
peers: Vec<PeerId>,
) -> Result<(), String> {
let Some(set_id) = self.notification_protocol_ids.get(&protocol) else {
return Err(
format!("Cannot remove peers from reserved set of unknown protocol: {}", protocol)
)
return Err(format!(
"Cannot remove peers from reserved set of unknown protocol: {}",
protocol
))
};
for peer_id in peers.into_iter() {