Skip to content

Commit

Permalink
fix: resolve linter issue with complex return type
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaMasych committed Sep 9, 2024
1 parent c17fd34 commit 5f31d60
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/party.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1004,15 +1004,16 @@ pub(crate) mod tests {
assert_eq!(event_receiver.recv().await.unwrap(), PartyEvent::Finalize);
}

// Type aggregating `receiver from` and `sender into` party, which are
// intended for external system to communicate with the party.
type PartyExternalChannels = (UnboundedReceiver<MessagePacket>, UnboundedSender<MessagePacket>);

// Create test parties with predefined generics, based on config.
fn create_parties(
cfg: BPConConfig,
) -> (
Vec<Party<MockValue, MockValueSelector>>,
Vec<(
UnboundedReceiver<MessagePacket>,
UnboundedSender<MessagePacket>,
)>,
Vec<PartyExternalChannels>,
) {
let value_selector = MockValueSelector;
let leader_elector = Box::new(DefaultLeaderElector::new());
Expand Down

0 comments on commit 5f31d60

Please sign in to comment.