mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Ensure cumulus/bridges is ignored by formatter and run it (#1369)
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -462,7 +462,8 @@ where
|
||||
follow_subscription: String,
|
||||
operation_id: String,
|
||||
) -> RpcResult<()> {
|
||||
let Some(operation) = self.subscriptions.get_operation(&follow_subscription, &operation_id) else {
|
||||
let Some(operation) = self.subscriptions.get_operation(&follow_subscription, &operation_id)
|
||||
else {
|
||||
return Ok(())
|
||||
};
|
||||
|
||||
@@ -479,7 +480,8 @@ where
|
||||
follow_subscription: String,
|
||||
operation_id: String,
|
||||
) -> RpcResult<()> {
|
||||
let Some(operation) = self.subscriptions.get_operation(&follow_subscription, &operation_id) else {
|
||||
let Some(operation) = self.subscriptions.get_operation(&follow_subscription, &operation_id)
|
||||
else {
|
||||
return Ok(())
|
||||
};
|
||||
|
||||
|
||||
@@ -166,9 +166,7 @@ where
|
||||
|
||||
let mut ret = Vec::with_capacity(self.operation_max_storage_items);
|
||||
for _ in 0..self.operation_max_storage_items {
|
||||
let Some(key) = keys_iter.next() else {
|
||||
break
|
||||
};
|
||||
let Some(key) = keys_iter.next() else { break };
|
||||
|
||||
let result = match ty {
|
||||
IterQueryType::Value => self.query_storage_value(hash, &key, child_key),
|
||||
|
||||
Reference in New Issue
Block a user