Attempted fix for concurrent shard startup
This commit is contained in:
parent
95e0fcc36d
commit
6dfc937257
@ -116,8 +116,8 @@ namespace Myriad.Gateway
|
||||
_worker = ShardLoop();
|
||||
|
||||
// we can probably TCS this instead of spin loop but w/e
|
||||
while (State != ShardState.Identifying)
|
||||
await Task.Delay(100);
|
||||
while (State < ShardState.Identifying)
|
||||
await Task.Delay(50);
|
||||
}
|
||||
|
||||
public async Task UpdateStatus(GatewayStatusUpdate payload)
|
||||
|
Loading…
Reference in New Issue
Block a user