Fix some typos (#3376)

## Proposed Changes

This PR fixes various minor typos in the project.
This commit is contained in:
Justin Traglia
2022-07-27 00:51:06 +00:00
parent 44fae52cd7
commit 0f62d900fe
16 changed files with 25 additions and 25 deletions

View File

@@ -86,7 +86,7 @@ impl<E: EthSpec> EarlyAttesterCache<E> {
///
/// - There is a cache `item` present.
/// - If `request_slot` is in the same epoch as `item.epoch`.
/// - If `request_index` does not exceed `item.comittee_count`.
/// - If `request_index` does not exceed `item.committee_count`.
pub fn try_attest(
&self,
request_slot: Slot,

View File

@@ -30,9 +30,9 @@ pub struct GossipCache {
proposer_slashing: Option<Duration>,
/// Timeout for attester slashings.
attester_slashing: Option<Duration>,
/// Timeout for aggregated sync commitee signatures.
/// Timeout for aggregated sync committee signatures.
signed_contribution_and_proof: Option<Duration>,
/// Timeout for sync commitee messages.
/// Timeout for sync committee messages.
sync_committee_message: Option<Duration>,
}
@@ -51,9 +51,9 @@ pub struct GossipCacheBuilder {
proposer_slashing: Option<Duration>,
/// Timeout for attester slashings.
attester_slashing: Option<Duration>,
/// Timeout for aggregated sync commitee signatures.
/// Timeout for aggregated sync committee signatures.
signed_contribution_and_proof: Option<Duration>,
/// Timeout for sync commitee messages.
/// Timeout for sync committee messages.
sync_committee_message: Option<Duration>,
}
@@ -101,13 +101,13 @@ impl GossipCacheBuilder {
self
}
/// Timeout for aggregated sync commitee signatures.
/// Timeout for aggregated sync committee signatures.
pub fn signed_contribution_and_proof_timeout(mut self, timeout: Duration) -> Self {
self.signed_contribution_and_proof = Some(timeout);
self
}
/// Timeout for sync commitee messages.
/// Timeout for sync committee messages.
pub fn sync_committee_message_timeout(mut self, timeout: Duration) -> Self {
self.sync_committee_message = Some(timeout);
self

View File

@@ -362,7 +362,7 @@ impl<T: BeaconChainTypes> NetworkService<T> {
Some(msg) = self.attestation_service.next() => self.on_attestation_service_msg(msg),
// process any sync committee service events
Some(msg) = self.sync_committee_service.next() => self.on_sync_commitee_service_message(msg),
Some(msg) = self.sync_committee_service.next() => self.on_sync_committee_service_message(msg),
event = self.libp2p.next_event() => self.on_libp2p_event(event, &mut shutdown_sender).await,
@@ -774,7 +774,7 @@ impl<T: BeaconChainTypes> NetworkService<T> {
}
}
fn on_sync_commitee_service_message(&mut self, msg: SubnetServiceMessage) {
fn on_sync_committee_service_message(&mut self, msg: SubnetServiceMessage) {
match msg {
SubnetServiceMessage::Subscribe(subnet) => {
for fork_digest in self.required_gossip_fork_digests() {