Skip to content

Commit 82bc50b

Browse files
committed
Run cargo fmt
1 parent 3251bcf commit 82bc50b

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

examples/http-multi-server-channels/src/main.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ use axum::{
66
routing::post,
77
};
88
use clap::Parser;
9-
use polytune::{
10-
channel::Channel,
11-
garble_lang::compile,
12-
mpc,
13-
};
9+
use polytune::{channel::Channel, garble_lang::compile, mpc};
1410
use reqwest::StatusCode;
1511
use std::{net::SocketAddr, path::PathBuf, result::Result, time::Duration};
1612
use tokio::{

examples/http-single-server-channels/src/http_channel.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,7 @@ impl Channel for PollingHttpChannel {
7373
}
7474
}
7575

76-
async fn recv_bytes_from(
77-
&self,
78-
p: usize,
79-
_phase: &str,
80-
) -> Result<Vec<u8>, HttpChannelError> {
76+
async fn recv_bytes_from(&self, p: usize, _phase: &str) -> Result<Vec<u8>, HttpChannelError> {
8177
let url = format!("{}/recv/{}/{}/{}", self.url, self.session, p, self.party);
8278
let mut attempts = 0;
8379
loop {

src/channel.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,7 @@ pub trait Channel {
8282

8383
/// Awaits a response from the party with the given index (must be between `0..participants`).
8484
#[allow(async_fn_in_trait)]
85-
async fn recv_bytes_from(
86-
&self,
87-
party: usize,
88-
phase: &str,
89-
) -> Result<Vec<u8>, Self::RecvError>;
85+
async fn recv_bytes_from(&self, party: usize, phase: &str) -> Result<Vec<u8>, Self::RecvError>;
9086
}
9187

9288
/// Serializes and sends an MPC message to the other party.

0 commit comments

Comments
 (0)