mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-03 22:13:12 +00:00
fix test imports
This commit is contained in:
parent
378a35319f
commit
ffda691ea7
@ -50,6 +50,8 @@ type NatManager* = ref object
|
|||||||
threadStarted: bool
|
threadStarted: bool
|
||||||
natCloseChan: Channel[bool]
|
natCloseChan: Channel[bool]
|
||||||
|
|
||||||
|
export natutils
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "nat"
|
topics = "nat"
|
||||||
|
|
||||||
|
|||||||
@ -48,7 +48,7 @@ import ./utils/asynciter
|
|||||||
import ./utils/trackedfutures
|
import ./utils/trackedfutures
|
||||||
import ./nat
|
import ./nat
|
||||||
|
|
||||||
export logutils
|
export logutils, nat
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "codex node"
|
topics = "codex node"
|
||||||
|
|||||||
@ -78,6 +78,7 @@ template setupAndTearDown*() {.dirty.} =
|
|||||||
pendingBlocks: PendingBlocksManager
|
pendingBlocks: PendingBlocksManager
|
||||||
discovery: DiscoveryEngine
|
discovery: DiscoveryEngine
|
||||||
advertiser: Advertiser
|
advertiser: Advertiser
|
||||||
|
nat: NatManager
|
||||||
|
|
||||||
let
|
let
|
||||||
path = currentSourcePath().parentDir
|
path = currentSourcePath().parentDir
|
||||||
@ -112,6 +113,7 @@ template setupAndTearDown*() {.dirty.} =
|
|||||||
engine = BlockExcEngine.new(
|
engine = BlockExcEngine.new(
|
||||||
localStore, wallet, network, discovery, advertiser, peerStore, pendingBlocks
|
localStore, wallet, network, discovery, advertiser, peerStore, pendingBlocks
|
||||||
)
|
)
|
||||||
|
nat = NatManager.new(NatConfig(hasExtIp: false, nat: NatNone))
|
||||||
store = NetworkStore.new(engine, localStore)
|
store = NetworkStore.new(engine, localStore)
|
||||||
node = CodexNodeRef.new(
|
node = CodexNodeRef.new(
|
||||||
switch = switch,
|
switch = switch,
|
||||||
@ -120,6 +122,7 @@ template setupAndTearDown*() {.dirty.} =
|
|||||||
prover = Prover.none,
|
prover = Prover.none,
|
||||||
discovery = blockDiscovery,
|
discovery = blockDiscovery,
|
||||||
taskpool = Taskpool.new(),
|
taskpool = Taskpool.new(),
|
||||||
|
nat = nat,
|
||||||
)
|
)
|
||||||
|
|
||||||
teardown:
|
teardown:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user