mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-16 20:33:09 +00:00
Fix rebase
This commit is contained in:
parent
45eb65c676
commit
576e712387
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user