Skip to content

Commit

Permalink
unused lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ibalajiarun committed Dec 5, 2024
1 parent eb43c48 commit be9243c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion consensus/src/epoch_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,6 @@ impl<P: OnChainConfigProvider> EpochManager<P> {
network_sender,
epoch_state.verifier.clone(),
self.proof_cache.clone(),
self.config.safety_rules.backend.clone(),
self.quorum_store_storage.clone(),
!consensus_config.is_dag_enabled(),
consensus_key,
Expand Down Expand Up @@ -1825,6 +1824,7 @@ pub enum NoRandomnessReason {
DKGCompletedSessionResourceMissing,
CompletedSessionTooOld,
NotInValidatorSet,
#[allow(unused)]
ConsensusKeyUnavailable,
ErrConvertingConsensusKeyToDecryptionKey(anyhow::Error),
TranscriptDeserializationError(bcs::Error),
Expand Down
5 changes: 1 addition & 4 deletions consensus/src/quorum_store/quorum_store_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::{
round_manager::VerifiedEvent,
};
use aptos_channels::{aptos_channel, message_queues::QueueStyle};
use aptos_config::config::{QuorumStoreConfig, SecureBackend};
use aptos_config::config::QuorumStoreConfig;
use aptos_consensus_types::{
common::Author, proof_of_store::ProofCache, request_response::GetPayloadCommand,
};
Expand Down Expand Up @@ -129,7 +129,6 @@ pub struct InnerBuilder {
network_sender: NetworkSender,
verifier: Arc<ValidatorVerifier>,
proof_cache: ProofCache,
backend: SecureBackend,
coordinator_tx: Sender<CoordinatorCommand>,
coordinator_rx: Option<Receiver<CoordinatorCommand>>,
batch_generator_cmd_tx: tokio::sync::mpsc::Sender<BatchGeneratorCommand>,
Expand Down Expand Up @@ -165,7 +164,6 @@ impl InnerBuilder {
network_sender: NetworkSender,
verifier: Arc<ValidatorVerifier>,
proof_cache: ProofCache,
backend: SecureBackend,
quorum_store_storage: Arc<dyn QuorumStoreStorage>,
broadcast_proofs: bool,
consensus_key: Arc<PrivateKey>,
Expand Down Expand Up @@ -205,7 +203,6 @@ impl InnerBuilder {
network_sender,
verifier,
proof_cache,
backend,
coordinator_tx,
coordinator_rx: Some(coordinator_rx),
batch_generator_cmd_tx,
Expand Down
2 changes: 2 additions & 0 deletions types/src/state_store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ use aptos_crypto::HashValue;
use bytes::Bytes;
use move_core_types::move_resource::MoveResource;
#[cfg(any(test, feature = "testing"))]
use std::collections::HashMap;
#[cfg(any(test, feature = "testing"))]
use std::hash::Hash;
use std::ops::Deref;

Expand Down

0 comments on commit be9243c

Please sign in to comment.