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
@@ -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` .