Skip to content

Commit 4bab2dc

Browse files
committed
refactor(simulation): refactor topology generation to permit multiple strategies
1 parent 600fb93 commit 4bab2dc

File tree

4 files changed

+178
-113
lines changed

4 files changed

+178
-113
lines changed

simulation/src/ExamplesRelayP2P.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ example1 =
7171
}
7272
)
7373

74-
p2pNetwork = topologyToNetwork (Just (kilobytes 1000)) p2pTopography
74+
p2pNetwork = topologyToNetwork p2pTopography
7575
p2pTopography =
7676
genArbitraryP2PTopography p2pTopographyCharacteristics rng0
7777

@@ -149,7 +149,7 @@ example2 =
149149
trace =
150150
traceRelayP2P
151151
rng0
152-
(topologyToNetwork (Just (kilobytes 1000)) p2pTopography)
152+
(topologyToNetwork p2pTopography)
153153
(\latency -> mkTcpConnProps latency . fromMaybe undefined)
154154
( \rng ->
155155
RelayNodeConfig

0 commit comments

Comments
 (0)