@@ -249,7 +249,10 @@ fn test_walk_ring_15_org_biased() {
249
249
} )
250
250
}
251
251
252
- fn test_walk_ring_ex ( peer_configs : & mut Vec < TestPeerConfig > , test_pingback : bool ) -> Vec < TestPeer > {
252
+ fn test_walk_ring_ex (
253
+ peer_configs : & mut Vec < TestPeerConfig > ,
254
+ test_pingback : bool ,
255
+ ) -> Vec < TestPeer < ' _ > > {
253
256
// arrange neighbors into a "ring" topology, where
254
257
// neighbor N is connected to neighbor (N-1)%NUM_NEIGHBORS and (N+1)%NUM_NEIGHBORS.
255
258
// If test_pingback is true, then neighbor N is only connected to (N+1)%NUM_NEIGHBORS
@@ -303,11 +306,11 @@ fn test_walk_ring_ex(peer_configs: &mut Vec<TestPeerConfig>, test_pingback: bool
303
306
peers
304
307
}
305
308
306
- fn test_walk_ring ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer > {
309
+ fn test_walk_ring ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer < ' _ > > {
307
310
test_walk_ring_ex ( peer_configs, false )
308
311
}
309
312
310
- fn test_walk_ring_pingback ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer > {
313
+ fn test_walk_ring_pingback ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer < ' _ > > {
311
314
test_walk_ring_ex ( peer_configs, true )
312
315
}
313
316
@@ -453,15 +456,18 @@ fn test_walk_line_15_pingback() {
453
456
} )
454
457
}
455
458
456
- fn test_walk_line ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer > {
459
+ fn test_walk_line ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer < ' _ > > {
457
460
test_walk_line_ex ( peer_configs, false )
458
461
}
459
462
460
- fn test_walk_line_pingback ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer > {
463
+ fn test_walk_line_pingback ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer < ' _ > > {
461
464
test_walk_line_ex ( peer_configs, true )
462
465
}
463
466
464
- fn test_walk_line_ex ( peer_configs : & mut Vec < TestPeerConfig > , pingback_test : bool ) -> Vec < TestPeer > {
467
+ fn test_walk_line_ex (
468
+ peer_configs : & mut Vec < TestPeerConfig > ,
469
+ pingback_test : bool ,
470
+ ) -> Vec < TestPeer < ' _ > > {
465
471
// arrange neighbors into a "line" topology.
466
472
// If pingback_test is true, then the topology is unidirectional:
467
473
//
@@ -659,15 +665,18 @@ fn test_walk_star_15_org_biased() {
659
665
} )
660
666
}
661
667
662
- fn test_walk_star ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer > {
668
+ fn test_walk_star ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer < ' _ > > {
663
669
test_walk_star_ex ( peer_configs, false )
664
670
}
665
671
666
- fn test_walk_star_pingback ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer > {
672
+ fn test_walk_star_pingback ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer < ' _ > > {
667
673
test_walk_star_ex ( peer_configs, true )
668
674
}
669
675
670
- fn test_walk_star_ex ( peer_configs : & mut Vec < TestPeerConfig > , pingback_test : bool ) -> Vec < TestPeer > {
676
+ fn test_walk_star_ex (
677
+ peer_configs : & mut Vec < TestPeerConfig > ,
678
+ pingback_test : bool ,
679
+ ) -> Vec < TestPeer < ' _ > > {
671
680
// arrange neighbors into a "star" topology.
672
681
// If pingback_test is true, then initial connections are unidirectional -- each neighbor (except
673
682
// for 0) only knows about 0. Neighbor 0 knows about no one.
@@ -718,7 +727,7 @@ fn test_walk_star_ex(peer_configs: &mut Vec<TestPeerConfig>, pingback_test: bool
718
727
peers
719
728
}
720
729
721
- fn test_walk_inbound_line ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer > {
730
+ fn test_walk_inbound_line ( peer_configs : & mut Vec < TestPeerConfig > ) -> Vec < TestPeer < ' _ > > {
722
731
// arrange neighbors into a two-tiered "line" topology, where even-numbered neighbors are
723
732
// "NAT'ed" but connected to both the predecessor and successor odd neighbors. Odd
724
733
// numbered neighbors are not connected to anyone. The first and last even-numbered
0 commit comments