We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc528b commit 1949cc7Copy full SHA for 1949cc7
sim-rs/sim-cli/src/bin/gen-test-data/strategy/utils.rs
@@ -62,8 +62,8 @@ impl GraphBuilder {
62
let loc1 = to_netsim_location(self.location_of(node));
63
let loc2 = to_netsim_location(self.location_of(producer));
64
latency_between_locations(loc1, loc2, 1.)
65
- .unwrap()
66
- .to_duration()
+ .map(|d| d.to_duration())
+ .unwrap_or_default()
67
.max(Duration::from_millis(1))
68
});
69
self.links.push(RawLinkConfig {
0 commit comments