mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-13 13:26:29 +00:00
fix rebase
This commit is contained in:
parent
111fd90498
commit
ce5c146758
@ -22,9 +22,6 @@ export nodeprocess
|
|||||||
logScope:
|
logScope:
|
||||||
topics = "integration testing hardhat process"
|
topics = "integration testing hardhat process"
|
||||||
|
|
||||||
type HardhatProcess* = ref object of NodeProcess
|
|
||||||
logFile: ?IoHandle
|
|
||||||
|
|
||||||
type
|
type
|
||||||
OnOutputLineCaptured = proc(line: string) {.gcsafe, raises: [].}
|
OnOutputLineCaptured = proc(line: string) {.gcsafe, raises: [].}
|
||||||
HardhatProcess* = ref object of NodeProcess
|
HardhatProcess* = ref object of NodeProcess
|
||||||
@ -92,6 +89,7 @@ proc startNode*(
|
|||||||
args: seq[string],
|
args: seq[string],
|
||||||
debug: string | bool = false,
|
debug: string | bool = false,
|
||||||
name: string,
|
name: string,
|
||||||
|
onOutputLineCaptured: OnOutputLineCaptured = nil,
|
||||||
): Future[HardhatProcess] {.async.} =
|
): Future[HardhatProcess] {.async.} =
|
||||||
logScope:
|
logScope:
|
||||||
nodeName = name
|
nodeName = name
|
||||||
@ -113,6 +111,7 @@ proc startNode*(
|
|||||||
debug: ($debug != "false"),
|
debug: ($debug != "false"),
|
||||||
trackedFutures: TrackedFutures.new(),
|
trackedFutures: TrackedFutures.new(),
|
||||||
name: name,
|
name: name,
|
||||||
|
onOutputLine: onOutputLineCaptured,
|
||||||
)
|
)
|
||||||
|
|
||||||
await hardhat.start()
|
await hardhat.start()
|
||||||
@ -122,7 +121,7 @@ proc startNode*(
|
|||||||
|
|
||||||
return hardhat
|
return hardhat
|
||||||
|
|
||||||
method onOutputLineCaptured(node: HardhatProcess, line: string) =
|
method onOutputLineCaptured(node: HardhatProcess, line: string) {.raises: [].} =
|
||||||
logScope:
|
logScope:
|
||||||
nodeName = node.name
|
nodeName = node.name
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user