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