ipt establisher API: pass a struct to new() (fmt)
One of rustfmt's changes here is wrong. Whatever.
This commit is contained in:
parent
0cf3243260
commit
9a0715c6e8
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue