Sleep before fetching debug info.

This commit is contained in:
benbierens 2023-10-27 10:56:30 +02:00
parent a362eb1e96
commit 529f923595
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 5 additions and 0 deletions

View File

@ -155,6 +155,11 @@ namespace CodexNetDeployer
private CodexInstance[] CreateCodexInstances(List<CodexNodeStartResult> startResults)
{
// When freshly started, the Codex nodes are announcing themselves by an incorrect IP address.
// Only after fully initialized do they update to the provided NAT address.
// Therefore, we wait:
Thread.Sleep(TimeSpan.FromSeconds(5));
return startResults.Select(r => CreateCodexInstance(r.CodexNode)).ToArray();
}