ipt establisher API: pass a struct to new() (fmt)

One of rustfmt's changes here is wrong.  Whatever.
This commit is contained in:
Ian Jackson 2023-08-23 12:47:42 +01:00
parent 0cf3243260
commit 9a0715c6e8
1 changed files with 2 additions and 6 deletions

View File

@ -317,7 +317,7 @@ impl IptRelay {
// TODO HSS IntroPointId lacks a constructor and maybe should change anyway
intro_pt_id: todo!(),
target: self.relay.clone(),
ipt_sid_keypair: todo!(), // TODO HSS
ipt_sid_keypair: todo!(), // TODO HSS
accepting_requests: todo!(), // TODO HSS
};
let (establisher, mut watch_rx) = mockable.make_new_ipt(imm, params)?;
@ -770,11 +770,7 @@ impl<R: Runtime> Mockable<R> for Real<R> {
imm: &Immutable<R>,
params: IptParameters,
) -> Result<(Self::IptEstablisher, watch::Receiver<IptStatus>), FatalError> {
IptEstablisher::new(
imm.runtime.clone(),
params,
self.circ_pool.clone(),
)
IptEstablisher::new(imm.runtime.clone(), params, self.circ_pool.clone())
}
}