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
+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
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
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
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).
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 ...");
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.
assert!(response.result.is_ok());
}
@@ -97,7 +97,7 @@ impl HandleNetworkMessage for NetworkAvailabilityState {
outgoing_request
.pending_response
.send(response)
.expect("Response is always sent succesfully");
.expect("Response is always sent successfully");
None
},
_ => Some(NetworkMessage::RequestFromNode(peer, request)),
@@ -219,7 +219,7 @@ impl Future for ProxiedRequest {
Poll::Ready(response) => Poll::Ready(ProxiedResponse {
sender: self.sender.take().expect("sender already used"),
result: response
.expect("Response is always succesfully received.")
.expect("Response is always successfully received.")
.result
.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());
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();
// Create the channel from `peer` to `NetworkInterface` .