Skip to content

Commit 4b61bac

Browse files
committed
simulation: use BandwidthBytesPerSecond synonym
1 parent 004d1da commit 4b61bac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

simulation/src/Topology.hs

+3-2
Original file line numberDiff line numberDiff line change
@@ -600,13 +600,14 @@ forgetNodeInfo = G.nemap snd id
600600
-- Conversion between FGL Graph and P2PTopography
601601
--------------------------------------------------------------------------------
602602

603-
type BandwidthPerSecond = Bytes
603+
type BandwidthBytesPerSecond = Bytes
604+
604605
data P2PNetwork = P2PNetwork
605606
{ p2pNodes :: !(Map NodeId Point)
606607
, p2pNodeNames :: !(Map NodeId Text)
607608
, p2pNodeCores :: !(Map NodeId NumCores)
608609
, p2pNodeStakes :: !(Map NodeId StakeFraction)
609-
, p2pLinks :: !(Map (NodeId, NodeId) (Latency, Maybe Bytes))
610+
, p2pLinks :: !(Map (NodeId, NodeId) (Latency, Maybe BandwidthBytesPerSecond))
610611
, p2pWorld :: !World
611612
}
612613
deriving (Eq, Show, Generic)

0 commit comments

Comments
 (0)