Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dknopik committed Feb 18, 2025
1 parent 9f997f9 commit 70998a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 1 addition & 3 deletions anchor/qbft_manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,7 @@ impl QbftManager {
}

// Trait that describes any data that is able to be decided upon during a qbft instance
pub trait QbftDecidable:
QbftData<Hash = Hash256> + Send + Sync + 'static
{
pub trait QbftDecidable: QbftData<Hash = Hash256> + Send + Sync + 'static {
type Id: Hash + Eq + Send;

fn get_map(manager: &QbftManager) -> &Map<Self::Id, Self>;
Expand Down
13 changes: 8 additions & 5 deletions anchor/signature_collector/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,19 @@ pub struct SignatureCollectorManager {
}

impl SignatureCollectorManager {
pub fn new<T>(processor: Senders, slot_clock: T) -> Result<Arc<Self>, CollectionError> where T: SlotClock + 'static {
pub fn new<T>(processor: Senders, slot_clock: T) -> Result<Arc<Self>, CollectionError>
where
T: SlotClock + 'static,
{
let manager = Arc::new(Self {
processor,
signature_collectors: DashMap::new(),
});

manager
.processor
.permitless
.send_async(Arc::clone(&manager).cleaner(slot_clock), COLLECTOR_CLEANER_NAME)?;
manager.processor.permitless.send_async(
Arc::clone(&manager).cleaner(slot_clock),
COLLECTOR_CLEANER_NAME,
)?;

Ok(manager)
}
Expand Down

0 comments on commit 70998a7

Please sign in to comment.