@@ -40,8 +40,8 @@ use corro_types::{
4040 actor:: { Actor , ActorId } ,
4141 agent:: Agent ,
4242 broadcast:: {
43- BroadcastInput , BroadcastV1 , BroadcastV2 , ChangeV1 , DispatchRuntime ,
44- FocaCmd , FocaInput , UniPayload , UniPayloadV1 ,
43+ BroadcastInput , BroadcastV1 , BroadcastV2 , ChangeV1 , DispatchRuntime , FocaCmd , FocaInput ,
44+ UniPayload , UniPayloadV1 ,
4545 } ,
4646 channel:: { bounded, CorroReceiver , CorroSender } ,
4747} ;
@@ -437,9 +437,8 @@ async fn handle_broadcasts(
437437 let mut idle_pendings =
438438 FuturesUnordered :: < Pin < Box < dyn Future < Output = PendingBroadcast > + Send + ' static > > > :: new ( ) ;
439439
440- let mut broadcast_v2_pendings = FuturesUnordered :: <
441- Pin < Box < dyn Future < Output = BroadcastV2 > + Send + ' static > > ,
442- > :: new ( ) ;
440+ let mut broadcast_v2_pendings =
441+ FuturesUnordered :: < Pin < Box < dyn Future < Output = BroadcastV2 > + Send + ' static > > > :: new ( ) ;
443442
444443 let mut bcast_interval = interval ( opts. interval ) ;
445444
@@ -544,7 +543,10 @@ async fn handle_broadcasts(
544543 }
545544 BroadcastInput :: AddBroadcastV2 ( bcast) => {
546545 // todo: rebroadcast immediates too??
547- let BroadcastV2 { change : BroadcastV1 :: Change ( change) , .. } = bcast;
546+ let BroadcastV2 {
547+ change : BroadcastV1 :: Change ( change) ,
548+ ..
549+ } = bcast;
548550 to_local_broadcast. push_front ( change) ;
549551 }
550552 // for old rebroadcast, treat as normal
@@ -847,7 +849,7 @@ async fn handle_broadcasts(
847849 // let prev_set = bcast_change.set.clone();
848850 let broadcast_to = member_states
849851 . iter ( )
850- . filter_map ( |( member_id, state) | {
852+ . filter_map ( |( member_id, state) | {
851853 // don't broadcast to ourselves... or a member that's already in the set
852854 if * member_id == actor_id
853855 || state. cluster_id != agent. cluster_id ( )
0 commit comments