mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-24 11:49:11 +00:00
Extract node components to a variable to make Nim 2 happy
This commit is contained in:
parent
51a40548d1
commit
ab39da8230
@ -46,7 +46,8 @@ proc generateNodes*(
|
|||||||
networkStore = NetworkStore.new(engine, localStore)
|
networkStore = NetworkStore.new(engine, localStore)
|
||||||
|
|
||||||
switch.mount(network)
|
switch.mount(network)
|
||||||
result.add((
|
|
||||||
|
let nc : NodesComponents = (
|
||||||
switch,
|
switch,
|
||||||
discovery,
|
discovery,
|
||||||
wallet,
|
wallet,
|
||||||
@ -56,7 +57,9 @@ proc generateNodes*(
|
|||||||
pendingBlocks,
|
pendingBlocks,
|
||||||
blockDiscovery,
|
blockDiscovery,
|
||||||
engine,
|
engine,
|
||||||
networkStore))
|
networkStore)
|
||||||
|
|
||||||
|
result.add(nc)
|
||||||
|
|
||||||
proc connectNodes*(nodes: seq[Switch]) {.async.} =
|
proc connectNodes*(nodes: seq[Switch]) {.async.} =
|
||||||
for dialer in nodes:
|
for dialer in nodes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user