Fix mesh bug indent

This commit is contained in:
Oskar Thoren 2020-05-28 10:58:37 +08:00
parent 8a648a44aa
commit 063a57d583
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
1 changed files with 2 additions and 3 deletions

View File

@ -71,15 +71,14 @@ proc fullMeshNetwork(amount: int): seq[NodeInfo] =
var staticnodes: seq[string]
for item in result:
staticnodes.add(item.address)
result.add(initNodeCmd(portOffset + i, staticnodes, label = "full node"))
result.add(initNodeCmd(portOffset + i, staticnodes, label = "full node"))
when isMainModule:
# TODO: WakuNetworkConf
var nodes: seq[NodeInfo]
let topology = Star
let topology = FullMesh
let amount = 6
# XXX: For some reason Mesh hangs with multitail
case topology:
of Star:
nodes = starNetwork(amount)