mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-06 15:33:06 +00:00
fix: use the last used port instead of the globally defined port
This commit is contained in:
parent
9f83213757
commit
055744a0c7
@ -155,8 +155,8 @@ template multinodesuite*(name: string, body: untyped) =
|
||||
let updatedLogFile = getLogFile(role, some roleIdx)
|
||||
config.withLogFile(updatedLogFile)
|
||||
|
||||
let apiPort = await nextFreePort(CodexApiPort + nodeIdx)
|
||||
let discPort = await nextFreePort(CodexDiscPort + nodeIdx)
|
||||
let apiPort = await nextFreePort(lastUsedCodexApiPort + nodeIdx)
|
||||
let discPort = await nextFreePort(lastUsedCodexDiscPort + nodeIdx)
|
||||
config.addCliOption("--api-port", $apiPort)
|
||||
config.addCliOption("--disc-port", $discPort)
|
||||
lastUsedCodexApiPort = apiPort
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user