Skip to content

Commit

Permalink
fix never-read error
Browse files Browse the repository at this point in the history
  • Loading branch information
th4s committed Oct 2, 2024
1 parent 2e82847 commit ce7d9e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/tls/mpc/src/follower/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ impl MpcTlsFollower {
impl Future<Output = Result<MpcTlsFollowerData, MpcTlsError>>,
) {
let (mut mailbox, addr) = ludi::mailbox::<MpcTlsFollowerMsg>(100);
let ctrl = MpcTlsFollowerCtrl::new(addr.clone());
let ctrl = MpcTlsFollowerCtrl::new(addr);
let ctrl_fut = ctrl.clone();

let mut stream = self
.stream
Expand All @@ -73,7 +74,7 @@ impl MpcTlsFollower {
let mut remote_fut = Box::pin(async move {
while let Some(msg) = stream.next().await {
let msg = MpcTlsFollowerMsg::try_from(msg?)?;
addr.send(msg).await?;
ctrl_fut.address.send(msg).await?;
}

Ok::<_, MpcTlsError>(())
Expand Down

0 comments on commit ce7d9e2

Please sign in to comment.