Skip to content

Commit 6ecd338

Browse files
committed
fix warnings
1 parent 3f1026a commit 6ecd338

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

crates/starfish/core/src/core_thread.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ enum CoreThreadCommand {
3838
/// Add blocks to be processed and accepted
3939
AddBlocks(Vec<VerifiedBlock>, oneshot::Sender<BTreeSet<BlockRef>>),
4040
/// Add block headers to be processed and accepted
41+
#[expect(dead_code)]
4142
AddBlockHeaders(
4243
Vec<VerifiedBlockHeader>,
4344
oneshot::Sender<BTreeSet<BlockRef>>,

crates/starfish/core/src/error.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@ pub(crate) enum ConsensusError {
8585
)]
8686
TooManyFetchedBlocksReturned(AuthorityIndex),
8787

88-
#[error(
89-
"{0} block headers and {1} block bodies have been returned from authority {2} when requesting to fetch missing blocks"
90-
)]
91-
NumberOfBlockHeadersAndBodiesDiffers(usize, usize, AuthorityIndex),
92-
9388
#[error("Too many blocks have been requested from authority {0}")]
9489
TooManyFetchBlocksRequested(AuthorityIndex),
9590

crates/starfish/core/src/synchronizer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ use tracing::{debug, error, info, trace, warn};
3333
use crate::{
3434
BlockHeaderAPI, CommitIndex, Round,
3535
authority_service::COMMIT_LAG_MULTIPLIER,
36-
block_header::{BlockRef, SignedBlockHeader, VerifiedBlock, VerifiedBlockHeader},
36+
block_header::{BlockRef, SignedBlockHeader, VerifiedBlockHeader},
3737
block_verifier::BlockVerifier,
3838
commit_vote_monitor::CommitVoteMonitor,
3939
context::Context,
4040
core_thread::CoreThreadDispatcher,
4141
dag_state::DagState,
4242
error::{ConsensusError, ConsensusResult},
43-
network::{NetworkClient, SerializedBlock},
43+
network::NetworkClient,
4444
};
4545

4646
/// The number of concurrent fetch blocks requests per authority

0 commit comments

Comments
 (0)