mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-17 21:45:41 +00:00
dev-comment spelling mistakes (#4434)
This commit is contained in:
committed by
GitHub
parent
854d92a4a4
commit
4adb8466a3
@@ -938,7 +938,7 @@ where
|
||||
handle_incoming_peer_message(ctx, runtime, state, remote, msg).await?;
|
||||
},
|
||||
NewGossipTopology(..) => {
|
||||
// impossibru!
|
||||
// impossible!
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -311,7 +311,7 @@ async fn distribute_collation(
|
||||
// whether or not we expect a connection request or not.
|
||||
should_connect: bool,
|
||||
) -> DistributeCollation {
|
||||
// Now we want to distribute a PoVBlock
|
||||
// Now we want to distribute a `PoVBlock`
|
||||
let pov_block = PoV { block_data: BlockData(vec![42, 43, 44]) };
|
||||
|
||||
let pov_hash = pov_block.hash();
|
||||
@@ -531,7 +531,7 @@ fn advertise_and_send_collation() {
|
||||
|
||||
// We declare to the connected validators that we are a collator.
|
||||
// We need to catch all `Declare` messages to the validators we've
|
||||
// previosly connected to.
|
||||
// previously connected to.
|
||||
for peer_id in test_state.current_group_validator_peer_ids() {
|
||||
expect_declare_msg(&mut virtual_overseer, &test_state, &peer_id).await;
|
||||
}
|
||||
@@ -897,7 +897,7 @@ where
|
||||
|
||||
// We declare to the connected validators that we are a collator.
|
||||
// We need to catch all `Declare` messages to the validators we've
|
||||
// previosly connected to.
|
||||
// previously connected to.
|
||||
for peer_id in test_state.current_group_validator_peer_ids() {
|
||||
expect_declare_msg(virtual_overseer, &test_state, &peer_id).await;
|
||||
}
|
||||
|
||||
@@ -1009,7 +1009,7 @@ where
|
||||
state.metrics.note_collator_peer_count(state.peer_data.len());
|
||||
},
|
||||
NewGossipTopology(..) => {
|
||||
// impossibru!
|
||||
// impossible!
|
||||
},
|
||||
PeerViewChange(peer_id, view) => {
|
||||
handle_peer_view_change(state, peer_id, view).await?;
|
||||
@@ -1254,7 +1254,7 @@ async fn handle_collation_fetched_result<Context>(
|
||||
Context: SubsystemContext<Message = CollatorProtocolMessage>,
|
||||
{
|
||||
// If no prior collation for this relay parent has been seconded, then
|
||||
// memoize the collation_event for that relay_parent, such that we may
|
||||
// memorize the `collation_event` for that `relay_parent`, such that we may
|
||||
// notify the collator of their successful second backing
|
||||
let relay_parent = collation_event.1.relay_parent;
|
||||
|
||||
@@ -1392,7 +1392,7 @@ async fn poll_collation_response(
|
||||
"Fetching collation failed due to network error"
|
||||
);
|
||||
// A minor decrease in reputation for any network failure seems
|
||||
// sensible. In theory this could be exploited, by DoSing this node,
|
||||
// sensible. In theory this could be exploited, by Dosing this node,
|
||||
// which would result in reduced reputation for proper nodes, but the
|
||||
// same can happen for penalties on timeouts, which we also have.
|
||||
CollationFetchResult::Error(COST_NETWORK_ERROR)
|
||||
@@ -1406,7 +1406,7 @@ async fn poll_collation_response(
|
||||
"Request timed out"
|
||||
);
|
||||
// A minor decrease in reputation for any network failure seems
|
||||
// sensible. In theory this could be exploited, by DoSing this node,
|
||||
// sensible. In theory this could be exploited, by Dosing this node,
|
||||
// which would result in reduced reputation for proper nodes, but the
|
||||
// same can happen for penalties on timeouts, which we also have.
|
||||
CollationFetchResult::Error(COST_REQUEST_TIMED_OUT)
|
||||
|
||||
@@ -494,7 +494,7 @@ fn collator_authentication_verification_works() {
|
||||
// our view.
|
||||
// - Collation protocol should request one PoV.
|
||||
// - Collation protocol should disconnect both collators after having received the collation.
|
||||
// - The same collators plus an additional collator connect again and send povs for a different relay parent.
|
||||
// - The same collators plus an additional collator connect again and send `PoV`s for a different relay parent.
|
||||
// - Collation protocol will request one PoV, but we will cancel it.
|
||||
// - Collation protocol should request the second PoV which does not succeed in time.
|
||||
// - Collation protocol should request third PoV.
|
||||
@@ -697,7 +697,7 @@ fn reject_connection_to_next_group() {
|
||||
&mut virtual_overseer,
|
||||
peer_b.clone(),
|
||||
test_state.collators[0].clone(),
|
||||
test_state.chain_ids[1].clone(), // next, not current para_id
|
||||
test_state.chain_ids[1].clone(), // next, not current `para_id`
|
||||
)
|
||||
.await;
|
||||
|
||||
|
||||
@@ -269,7 +269,7 @@ impl DisputeSender {
|
||||
// but I don't want to enable a bypass for the below smart constructor and this code path
|
||||
// is supposed to be only hit on startup basically.
|
||||
//
|
||||
// Revisit this decision when the `from_signed_statements` is unneded for the normal code
|
||||
// Revisit this decision when the `from_signed_statements` is unneeded for the normal code
|
||||
// path as well.
|
||||
let message = DisputeMessage::from_signed_statements(
|
||||
valid_signed,
|
||||
|
||||
@@ -363,7 +363,7 @@ fn send_dispute_gets_cleaned_up() {
|
||||
)
|
||||
.await;
|
||||
|
||||
// Yield, so subsystem can make progess:
|
||||
// Yield, so subsystem can make progress:
|
||||
Delay::new(Duration::from_millis(2)).await;
|
||||
|
||||
conclude(&mut handle).await;
|
||||
@@ -582,7 +582,7 @@ async fn conclude(handle: &mut TestSubsystemContextHandle<DisputeDistributionMes
|
||||
poll_fn(|ctx| {
|
||||
let fut = handle.recv();
|
||||
pin_mut!(fut);
|
||||
// No requests should be inititated, as there is no longer any dispute active:
|
||||
// No requests should be initiated, as there is no longer any dispute active:
|
||||
assert_matches!(fut.poll(ctx), Poll::Pending, "No requests expected");
|
||||
Poll::Ready(())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user