Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszrzasik committed Mar 10, 2025
1 parent a253c5b commit 52b0c21
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
15 changes: 8 additions & 7 deletions hotshot-task-impls/src/quorum_vote/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
// You should have received a copy of the MIT License
// along with the HotShot repository. If not, see <https://mit-license.org/>.

use crate::{
events::HotShotEvent,
helpers::{broadcast_event, wait_for_second_vid_share},
quorum_vote::handlers::{handle_quorum_proposal_validated, submit_vote, update_shared_state},
};
use std::{collections::BTreeMap, sync::Arc, time::Instant};

use async_broadcast::{InactiveReceiver, Receiver, Sender};
use async_lock::RwLock;
use async_trait::async_trait;
Expand Down Expand Up @@ -39,12 +36,16 @@ use hotshot_types::{
StakeTableEntries,
};
use hotshot_utils::anytrace::*;
use std::time::Instant;
use std::{collections::BTreeMap, sync::Arc};
use tokio::task::JoinHandle;
use tracing::instrument;
use vbs::version::StaticVersionType;

use crate::{
events::HotShotEvent,
helpers::{broadcast_event, wait_for_second_vid_share},
quorum_vote::handlers::{handle_quorum_proposal_validated, submit_vote, update_shared_state},
};

/// Event handlers for `QuorumProposalValidated`.
mod handlers;

Expand Down
9 changes: 5 additions & 4 deletions hotshot-types/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@

//! Provides the core consensus types
use async_lock::{RwLock, RwLockReadGuard, RwLockUpgradableReadGuard, RwLockWriteGuard};
use committable::{Commitment, Committable};
use hotshot_utils::anytrace::*;
use std::{
collections::{BTreeMap, HashMap},
mem::ManuallyDrop,
ops::{Deref, DerefMut},
sync::Arc,
};

use async_lock::{RwLock, RwLockReadGuard, RwLockUpgradableReadGuard, RwLockWriteGuard};
use committable::{Commitment, Committable};
use hotshot_utils::anytrace::*;
use tracing::instrument;
use vec1::Vec1;

use crate::simple_vote::HasEpoch;
pub use crate::utils::{View, ViewInner};
use crate::{
data::{Leaf2, QuorumProposalWrapper, VidCommitment, VidDisperse, VidDisperseShare},
Expand All @@ -28,6 +28,7 @@ use crate::{
event::{HotShotAction, LeafInfo},
message::{Proposal, UpgradeLock},
simple_certificate::{DaCertificate2, NextEpochQuorumCertificate2, QuorumCertificate2},
simple_vote::HasEpoch,
traits::{
block_contents::BuilderFee,
metrics::{Counter, Gauge, Histogram, Metrics, NoMetrics},
Expand Down

0 comments on commit 52b0c21

Please sign in to comment.