mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 01:57:56 +00:00
Remove extra commas made redundent after rustfmt (#9404)
* Remove extra commas made redundent after rustfmt
This commit is contained in:
@@ -230,7 +230,7 @@ impl<B: BlockT> NetworkBehaviour for Bitswap<B> {
|
||||
let wantlist = match request.wantlist {
|
||||
Some(wantlist) => wantlist,
|
||||
None => {
|
||||
debug!(target: LOG_TARGET, "Unexpected bitswap message from {}", peer,);
|
||||
debug!(target: LOG_TARGET, "Unexpected bitswap message from {}", peer);
|
||||
return
|
||||
},
|
||||
};
|
||||
|
||||
@@ -902,7 +902,7 @@ mod tests {
|
||||
|
||||
let OutEvent::SendRequest { target, pending_response, .. } =
|
||||
block_on(sender.next()).unwrap();
|
||||
assert!(target == peer0 || target == peer1, "Expect request to originate from known peer.",);
|
||||
assert!(target == peer0 || target == peer1, "Expect request to originate from known peer.");
|
||||
|
||||
// And we should have one busy peer.
|
||||
assert!({
|
||||
|
||||
@@ -2272,7 +2272,7 @@ mod test {
|
||||
.any(|(who, request)| { who == peer_id && request.from == FromBlock::Hash(a1_hash) }));
|
||||
|
||||
// there are no extra pending requests
|
||||
assert_eq!(sync.extra_justifications.pending_requests().count(), 0,);
|
||||
assert_eq!(sync.extra_justifications.pending_requests().count(), 0);
|
||||
|
||||
// there's one in-flight extra request to the expected peer
|
||||
assert!(sync.extra_justifications.active_requests().any(|(who, (hash, number))| {
|
||||
@@ -2290,7 +2290,7 @@ mod test {
|
||||
);
|
||||
|
||||
// there should be no in-flight requests
|
||||
assert_eq!(sync.extra_justifications.active_requests().count(), 0,);
|
||||
assert_eq!(sync.extra_justifications.active_requests().count(), 0);
|
||||
|
||||
// and the request should now be pending again, waiting for reschedule
|
||||
assert!(sync
|
||||
|
||||
Reference in New Issue
Block a user