Fix rebase

This commit is contained in:
E M 2026-01-16 11:02:59 +11:00
parent 45eb65c676
commit 576e712387
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View File

@ -78,7 +78,9 @@ proc ethAccount*(node: CodexProcess): Address {.raises: [CodexProcessError].} =
proc apiUrl*(node: CodexProcess): string {.raises: [CodexProcessError].} =
let config = node.config
return "http://" & config.apiBindAddress & ":" & $config.apiPort & "/api/storage/v1"
without apiBindAddress =? config.apiBindAddress:
raise newException(CodexProcessError, "REST API not started: --api-bindaddr not set")
return "http://" & apiBindAddress & ":" & $config.apiPort & "/api/storage/v1"
proc logFile*(node: CodexProcess): ?string {.raises: [CodexProcessError].} =
node.config.logFile

View File

@ -77,8 +77,8 @@ proc sanitize(pathSegment: string): string =
proc getTempDirName*(starttime: string, role: Role, roleIdx: int): string =
getTempDir() / "Storage" / sanitize($starttime) / sanitize($role & "_" & $roleIdx)
template multinodesuite*(name: string, body: untyped) =
asyncchecksuite name:
template multinodesuite*(suiteName: string, body: untyped) =
asyncchecksuite suiteName:
# Following the problem described here:
# https://github.com/NomicFoundation/hardhat/issues/2053
# It may be desirable to use http RPC provider.