Skip to content

Commit 90f78d1

Browse files
committed
fix typos (#4838)
1 parent c6583bb commit 90f78d1

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

beacon_node/beacon_chain/src/light_client_finality_update_verification.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub enum Error {
3434
SigSlotStartIsNone,
3535
/// Failed to construct a LightClientFinalityUpdate from state.
3636
FailedConstructingUpdate,
37-
/// Beacon chain error occured.
37+
/// Beacon chain error occurred.
3838
BeaconChainError(BeaconChainError),
3939
LightClientUpdateError(LightClientUpdateError),
4040
}

beacon_node/beacon_chain/src/light_client_optimistic_update_verification.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub enum Error {
3737
FailedConstructingUpdate,
3838
/// Unknown block with parent root.
3939
UnknownBlockParentRoot(Hash256),
40-
/// Beacon chain error occured.
40+
/// Beacon chain error occurred.
4141
BeaconChainError(BeaconChainError),
4242
LightClientUpdateError(LightClientUpdateError),
4343
}

beacon_node/client/src/address_change_broadcast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub async fn broadcast_address_changes<T: BeaconChainTypes>(
9999
messages: vec![pubsub_message],
100100
};
101101
// It seems highly unlikely that this unbounded send will fail, but
102-
// we handle the result nontheless.
102+
// we handle the result nonetheless.
103103
if let Err(e) = network_send.send(message) {
104104
debug!(
105105
log,

beacon_node/eth1/src/block_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub enum Error {
1313
/// Some `Eth1Block` was provided with the same block number but different data. The source
1414
/// of eth1 data is inconsistent.
1515
Conflicting(u64),
16-
/// The given block was not one block number higher than the higest known block number.
16+
/// The given block was not one block number higher than the highest known block number.
1717
NonConsecutive { given: u64, expected: u64 },
1818
/// Some invariant was violated, there is a likely bug in the code.
1919
Internal(String),

beacon_node/execution_layer/src/engine_api/json_structures.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ pub struct JsonPayloadAttributes {
386386
}
387387

388388
impl From<PayloadAttributes> for JsonPayloadAttributes {
389-
fn from(payload_atributes: PayloadAttributes) -> Self {
390-
match payload_atributes {
389+
fn from(payload_attributes: PayloadAttributes) -> Self {
390+
match payload_attributes {
391391
PayloadAttributes::V1(pa) => Self::V1(JsonPayloadAttributesV1 {
392392
timestamp: pa.timestamp,
393393
prev_randao: pa.prev_randao,

beacon_node/lighthouse_network/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ pub struct Config {
123123
/// Subscribe to all subnets for the duration of the runtime.
124124
pub subscribe_all_subnets: bool,
125125

126-
/// Import/aggregate all attestations recieved on subscribed subnets for the duration of the
126+
/// Import/aggregate all attestations received on subscribed subnets for the duration of the
127127
/// runtime.
128128
pub import_all_attestations: bool,
129129

beacon_node/lighthouse_network/src/service/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ impl<AppReqId: ReqId, TSpec: EthSpec> Network<AppReqId, TSpec> {
849849
}
850850

851851
/// Inform the peer that their request produced an error.
852-
pub fn send_error_reponse(
852+
pub fn send_error_response(
853853
&mut self,
854854
peer_id: PeerId,
855855
id: PeerRequestId,
@@ -1603,7 +1603,7 @@ impl<AppReqId: ReqId, TSpec: EthSpec> Network<AppReqId, TSpec> {
16031603
} => {
16041604
match reason {
16051605
Ok(_) => {
1606-
debug!(self.log, "Listener gracefuly closed"; "addresses" => ?addresses)
1606+
debug!(self.log, "Listener gracefully closed"; "addresses" => ?addresses)
16071607
}
16081608
Err(reason) => {
16091609
crit!(self.log, "Listener abruptly closed"; "addresses" => ?addresses, "reason" => ?reason)

beacon_node/lighthouse_network/tests/rpc_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ fn test_tcp_blocks_by_range_single_empty_rpc() {
715715
}
716716

717717
// Tests a streamed, chunked BlocksByRoot RPC Message
718-
// The size of the reponse is a full `BeaconBlock`
718+
// The size of the response is a full `BeaconBlock`
719719
// which is greater than the Snappy frame size. Hence, this test
720720
// serves to test the snappy framing format as well.
721721
#[test]

beacon_node/network/src/service.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl<T: BeaconChainTypes> NetworkService<T> {
229229
)> {
230230
let network_log = executor.log().clone();
231231
// build the channels for external comms
232-
let (network_senders, network_recievers) = NetworkSenders::new();
232+
let (network_senders, network_receivers) = NetworkSenders::new();
233233

234234
#[cfg(feature = "disable-backfill")]
235235
warn!(
@@ -344,7 +344,7 @@ impl<T: BeaconChainTypes> NetworkService<T> {
344344
let NetworkReceivers {
345345
network_recv,
346346
validator_subscription_recv,
347-
} = network_recievers;
347+
} = network_receivers;
348348

349349
// create the network service and spawn the task
350350
let network_log = network_log.new(o!("service" => "network"));
@@ -635,7 +635,7 @@ impl<T: BeaconChainTypes> NetworkService<T> {
635635
id,
636636
reason,
637637
} => {
638-
self.libp2p.send_error_reponse(peer_id, id, error, reason);
638+
self.libp2p.send_error_response(peer_id, id, error, reason);
639639
}
640640
NetworkMessage::UPnPMappingEstablished { mappings } => {
641641
self.upnp_mappings = mappings;

beacon_node/network/src/sync/range_sync/chain_collection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl<T: BeaconChainTypes, C: BlockStorage> ChainCollection<T, C> {
280280
old_id = Some(Some(syncing_id));
281281
} else {
282282
// chains have the same number of peers, pick the currently syncing
283-
// chain to avoid unnecesary switchings and try to advance it
283+
// chain to avoid unnecessary switchings and try to advance it
284284
new_id = syncing_id;
285285
old_id = Some(None);
286286
}

0 commit comments

Comments
 (0)