fix some typos (#3587)

Signed-off-by: cuinix <915115094@qq.com>
Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
cuinix
2024-03-09 05:28:04 +08:00
committed by GitHub
parent 1fe3c5f23b
commit ea458d0b95
19 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ pub fn make_justification_for_header<H: HeaderT>(
votes_ancestries.push(child.clone()); votes_ancestries.push(child.clone());
} }
// The header we need to use when pre-commiting is the one at the highest height // The header we need to use when pre-committing is the one at the highest height
// on our chain. // on our chain.
let precommit_candidate = chain.last().map(|h| (h.hash(), *h.number())).unwrap(); let precommit_candidate = chain.last().map(|h| (h.hash(), *h.number())).unwrap();
unsigned_precommits.push(precommit_candidate); unsigned_precommits.push(precommit_candidate);
+2 -2
View File
@@ -159,7 +159,7 @@ impl ParachainInherentDataProvider {
target: LOG_TARGET, target: LOG_TARGET,
relay_parent = ?relay_parent, relay_parent = ?relay_parent,
error = ?e, error = ?e,
"An error occured during requesting the downward messages.", "An error occurred during requesting the downward messages.",
); );
}) })
.ok()?; .ok()?;
@@ -171,7 +171,7 @@ impl ParachainInherentDataProvider {
target: LOG_TARGET, target: LOG_TARGET,
relay_parent = ?relay_parent, relay_parent = ?relay_parent,
error = ?e, error = ?e,
"An error occured during requesting the inbound HRMP messages.", "An error occurred during requesting the inbound HRMP messages.",
); );
}) })
.ok()?; .ok()?;
@@ -265,7 +265,7 @@ macro_rules! impl_assert_events_helpers_for_relay_chain {
$crate::impls::assert_expected_events!( $crate::impls::assert_expected_events!(
Self, Self,
vec![ vec![
// XCM is succesfully received and proccessed // XCM is successfully received and proccessed
[<$chain RuntimeEvent>]::<N>::MessageQueue($crate::impls::pallet_message_queue::Event::Processed { [<$chain RuntimeEvent>]::<N>::MessageQueue($crate::impls::pallet_message_queue::Event::Processed {
origin: $crate::impls::AggregateMessageOrigin::Ump($crate::impls::UmpQueueId::Para(id)), origin: $crate::impls::AggregateMessageOrigin::Ump($crate::impls::UmpQueueId::Para(id)),
weight_used, weight_used,
@@ -192,7 +192,7 @@ pub type Barrier = TrailingSetTopicAsId<
AllowKnownQueryResponses<PolkadotXcm>, AllowKnownQueryResponses<PolkadotXcm>,
WithComputedOrigin< WithComputedOrigin<
( (
// If the message is one that immediately attemps to pay for execution, then // If the message is one that immediately attempts to pay for execution, then
// allow it. // allow it.
AllowTopLevelPaidExecutionFrom<Everything>, AllowTopLevelPaidExecutionFrom<Everything>,
// Parent and its pluralities (i.e. governance bodies) get free execution. // Parent and its pluralities (i.e. governance bodies) get free execution.
@@ -198,7 +198,7 @@ pub type Barrier = TrailingSetTopicAsId<
AllowKnownQueryResponses<PolkadotXcm>, AllowKnownQueryResponses<PolkadotXcm>,
WithComputedOrigin< WithComputedOrigin<
( (
// If the message is one that immediately attemps to pay for execution, then // If the message is one that immediately attempts to pay for execution, then
// allow it. // allow it.
AllowTopLevelPaidExecutionFrom<Everything>, AllowTopLevelPaidExecutionFrom<Everything>,
// Parent, its pluralities (i.e. governance bodies), and the Fellows plurality // Parent, its pluralities (i.e. governance bodies), and the Fellows plurality
@@ -207,7 +207,7 @@ pub type Barrier = TrailingSetTopicAsId<
AllowKnownQueryResponses<PolkadotXcm>, AllowKnownQueryResponses<PolkadotXcm>,
WithComputedOrigin< WithComputedOrigin<
( (
// If the message is one that immediately attemps to pay for execution, then // If the message is one that immediately attempts to pay for execution, then
// allow it. // allow it.
AllowTopLevelPaidExecutionFrom<Everything>, AllowTopLevelPaidExecutionFrom<Everything>,
// Parent and its pluralities (i.e. governance bodies) get free execution. // Parent and its pluralities (i.e. governance bodies) get free execution.
@@ -214,7 +214,7 @@ pub type Barrier = TrailingSetTopicAsId<
AllowKnownQueryResponses<PolkadotXcm>, AllowKnownQueryResponses<PolkadotXcm>,
WithComputedOrigin< WithComputedOrigin<
( (
// If the message is one that immediately attemps to pay for execution, then // If the message is one that immediately attempts to pay for execution, then
// allow it. // allow it.
AllowTopLevelPaidExecutionFrom<Everything>, AllowTopLevelPaidExecutionFrom<Everything>,
// Parent, its pluralities (i.e. governance bodies), and the Fellows plurality // Parent, its pluralities (i.e. governance bodies), and the Fellows plurality
+1 -1
View File
@@ -52,7 +52,7 @@ pub enum Subcommand {
/// Try-runtime has migrated to a standalone CLI /// Try-runtime has migrated to a standalone CLI
/// (<https://github.com/paritytech/try-runtime-cli>). The subcommand exists as a stub and /// (<https://github.com/paritytech/try-runtime-cli>). The subcommand exists as a stub and
/// deprecation notice. It will be removed entirely some time after Janurary 2024. /// deprecation notice. It will be removed entirely some time after January 2024.
TryRuntime, TryRuntime,
/// Key management CLI utilities /// Key management CLI utilities
@@ -99,7 +99,7 @@ pub(crate) struct Initialized {
/// This is the highest `SessionIndex` seen via `ActiveLeavesUpdate`. It doesn't matter if it /// This is the highest `SessionIndex` seen via `ActiveLeavesUpdate`. It doesn't matter if it
/// was cached successfully or not. It is used to detect ancient disputes. /// was cached successfully or not. It is used to detect ancient disputes.
highest_session_seen: SessionIndex, highest_session_seen: SessionIndex,
/// Will be set to `true` if an error occured during the last caching attempt /// Will be set to `true` if an error occurred during the last caching attempt
gaps_in_cache: bool, gaps_in_cache: bool,
spam_slots: SpamSlots, spam_slots: SpamSlots,
participation: Participation, participation: Participation,
+2 -2
View File
@@ -415,7 +415,7 @@ async fn check_signing_credentials(
gum::warn!( gum::warn!(
target: LOG_TARGET, target: LOG_TARGET,
relay_parent = ?leaf, relay_parent = ?leaf,
"error occured during requesting validators: {:?}", "error occurred during requesting validators: {:?}",
e e
); );
return None return None
@@ -508,7 +508,7 @@ async fn sign_and_submit_pvf_check_statement(
target: LOG_TARGET, target: LOG_TARGET,
?relay_parent, ?relay_parent,
?validation_code_hash, ?validation_code_hash,
"error occured during submitting a vote: {:?}", "error occurred during submitting a vote: {:?}",
e, e,
); );
}, },
+2 -2
View File
@@ -45,7 +45,7 @@ docker compose up
Please follow the [official installation guide](https://prometheus.io/docs/prometheus/latest/installation/) for your Please follow the [official installation guide](https://prometheus.io/docs/prometheus/latest/installation/) for your
platform/OS. platform/OS.
After succesfully installing and starting up Prometheus, we need to alter it's configuration such that it After successfully installing and starting up Prometheus, we need to alter it's configuration such that it
will scrape the benchmark prometheus endpoint `127.0.0.1:9999`. Please check the prometheus official documentation will scrape the benchmark prometheus endpoint `127.0.0.1:9999`. Please check the prometheus official documentation
regarding the location of `prometheus.yml`. On MacOS for example the full path `/opt/homebrew/etc/prometheus.yml` regarding the location of `prometheus.yml`. On MacOS for example the full path `/opt/homebrew/etc/prometheus.yml`
@@ -211,7 +211,7 @@ You can select log target, subtarget and verbosity just like with Polkadot node
### View test metrics ### View test metrics
Assuming the Grafana/Prometheus stack installation steps completed succesfully, you should be able to Assuming the Grafana/Prometheus stack installation steps completed successfully, you should be able to
view the test progress in real time by accessing [this link](http://localhost:3000/goto/SM5B8pNSR?orgId=1). view the test progress in real time by accessing [this link](http://localhost:3000/goto/SM5B8pNSR?orgId=1).
Now run Now run
@@ -598,7 +598,7 @@ pub async fn benchmark_availability_write(
gum::info!(target: LOG_TARGET, "Waiting for all emulated peers to receive their chunk from us ..."); gum::info!(target: LOG_TARGET, "Waiting for all emulated peers to receive their chunk from us ...");
for receiver in receivers.into_iter() { for receiver in receivers.into_iter() {
let response = receiver.await.expect("Chunk is always served succesfully"); let response = receiver.await.expect("Chunk is always served successfully");
// TODO: check if chunk is the one the peer expects to receive. // TODO: check if chunk is the one the peer expects to receive.
assert!(response.result.is_ok()); assert!(response.result.is_ok());
} }
@@ -97,7 +97,7 @@ impl HandleNetworkMessage for NetworkAvailabilityState {
outgoing_request outgoing_request
.pending_response .pending_response
.send(response) .send(response)
.expect("Response is always sent succesfully"); .expect("Response is always sent successfully");
None None
}, },
_ => Some(NetworkMessage::RequestFromNode(peer, request)), _ => Some(NetworkMessage::RequestFromNode(peer, request)),
@@ -219,7 +219,7 @@ impl Future for ProxiedRequest {
Poll::Ready(response) => Poll::Ready(ProxiedResponse { Poll::Ready(response) => Poll::Ready(ProxiedResponse {
sender: self.sender.take().expect("sender already used"), sender: self.sender.take().expect("sender already used"),
result: response result: response
.expect("Response is always succesfully received.") .expect("Response is always successfully received.")
.result .result
.map_err(|_| RequestFailure::Refused), .map_err(|_| RequestFailure::Refused),
}), }),
@@ -761,7 +761,7 @@ pub fn new_network(
gum::info!(target: LOG_TARGET, "{}",format!("connectivity {}%, latency {:?}", config.connectivity, config.latency).bright_black()); gum::info!(target: LOG_TARGET, "{}",format!("connectivity {}%, latency {:?}", config.connectivity, config.latency).bright_black());
let metrics = let metrics =
Metrics::new(&dependencies.registry).expect("Metrics always register succesfully"); Metrics::new(&dependencies.registry).expect("Metrics always register successfully");
let mut validator_authority_id_mapping = HashMap::new(); let mut validator_authority_id_mapping = HashMap::new();
// Create the channel from `peer` to `NetworkInterface` . // Create the channel from `peer` to `NetworkInterface` .
+1 -1
View File
@@ -54,7 +54,7 @@ impl DisputesTimeSlot {
/// is required to identify and verify it. /// is required to identify and verify it.
#[derive(PartialEq, Eq, Clone, Encode, Decode, TypeInfo, Debug)] #[derive(PartialEq, Eq, Clone, Encode, Decode, TypeInfo, Debug)]
pub struct DisputeProof { pub struct DisputeProof {
/// Time slot when the dispute occured. /// Time slot when the dispute occurred.
pub time_slot: DisputesTimeSlot, pub time_slot: DisputesTimeSlot,
/// The dispute outcome. /// The dispute outcome.
pub kind: SlashingOffenceKind, pub kind: SlashingOffenceKind,
+1 -1
View File
@@ -1374,7 +1374,7 @@ impl<T: Config> Pallet<T> {
outgoing outgoing
} }
// note replacement of the code of para with given `id`, which occured in the // note replacement of the code of para with given `id`, which occurred in the
// context of the given relay-chain block number. provide the replaced code. // context of the given relay-chain block number. provide the replaced code.
// //
// `at` for para-triggered replacement is the block number of the relay-chain // `at` for para-triggered replacement is the block number of the relay-chain
+1 -1
View File
@@ -63,7 +63,7 @@ pub enum Subcommand {
/// Try-runtime has migrated to a standalone CLI /// Try-runtime has migrated to a standalone CLI
/// (<https://github.com/paritytech/try-runtime-cli>). The subcommand exists as a stub and /// (<https://github.com/paritytech/try-runtime-cli>). The subcommand exists as a stub and
/// deprecation notice. It will be removed entirely some time after Janurary 2024. /// deprecation notice. It will be removed entirely some time after January 2024.
TryRuntime, TryRuntime,
/// Key management cli utilities /// Key management cli utilities
+1 -1
View File
@@ -40,7 +40,7 @@ pub enum Subcommand {
/// Try-runtime has migrated to a standalone /// Try-runtime has migrated to a standalone
/// [CLI](<https://github.com/paritytech/try-runtime-cli>). The subcommand exists as a stub and /// [CLI](<https://github.com/paritytech/try-runtime-cli>). The subcommand exists as a stub and
/// deprecation notice. It will be removed entirely some time after Janurary 2024. /// deprecation notice. It will be removed entirely some time after January 2024.
TryRuntime, TryRuntime,
} }
+1 -1
View File
@@ -43,7 +43,7 @@ pub enum Subcommand {
/// Try-runtime has migrated to a standalone CLI /// Try-runtime has migrated to a standalone CLI
/// (<https://github.com/paritytech/try-runtime-cli>). The subcommand exists as a stub and /// (<https://github.com/paritytech/try-runtime-cli>). The subcommand exists as a stub and
/// deprecation notice. It will be removed entirely some time after Janurary 2024. /// deprecation notice. It will be removed entirely some time after January 2024.
TryRuntime, TryRuntime,
/// Db meta columns information. /// Db meta columns information.