Skip to content

Commit 972a49f

Browse files
akonringtwittner
andauthored
Update tests/src/tests/timeboost/handover.rs
Co-authored-by: Toralf Wittner <[email protected]>
1 parent 249e90d commit 972a49f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/src/tests/timeboost/handover.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ where
7979

8080
let de_addrs = sf_addrs
8181
.iter()
82-
.map(|addr| Address::from((Ipv4Addr::LOCALHOST, addr.port() + DECRYPTER_PORT_OFFSET)))
82+
.cloned()
83+
.map(|addr| addr.with_offset(DECRYPTER_PORT_OFFSET))
8384
.collect::<Vec<_>>();
8485

8586
let committee = Committee::new(

0 commit comments

Comments
 (0)