|
|
@@ -353,6 +353,7 @@ enum IdleGroupActions {
|
|
|
/// Used for Idle group p2p conversations.
|
|
|
pub async fn manage_idle_conversation<
|
|
|
'a,
|
|
|
+ const P2P: bool,
|
|
|
S: 'a + MessageHolder,
|
|
|
I: std::iter::ExactSizeIterator<Item = &'a mut StateToWriter<S>>,
|
|
|
M: StreamMap<'a, S, I> + 'a,
|
|
|
@@ -362,7 +363,6 @@ pub async fn manage_idle_conversation<
|
|
|
stream_map: &'a mut M,
|
|
|
our_id: &str,
|
|
|
group: &str,
|
|
|
- p2p: bool,
|
|
|
rng: &mut Xoshiro256PlusPlus,
|
|
|
) -> StateMachine {
|
|
|
log!("{},{},Idle", our_id, group);
|
|
|
@@ -378,7 +378,7 @@ pub async fn manage_idle_conversation<
|
|
|
send_action(conversation, stream_map.values(), our_id, group, rng).await
|
|
|
}
|
|
|
IdleGroupActions::Receive(msg) => {
|
|
|
- let group = if p2p { None } else { Some(group) };
|
|
|
+ let group = if P2P { None } else { Some(group) };
|
|
|
receive_action(msg, conversation, stream_map, our_id, group, rng).await
|
|
|
}
|
|
|
}
|