mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-15 07:44:16 +01:00
switch bool around
This commit is contained in:
parent
a996fc7689
commit
a8f97aee23
1 changed files with 2 additions and 1 deletions
|
|
@ -133,6 +133,8 @@ public class GrpcClientIdentificationService : IHostedService
|
||||||
{
|
{
|
||||||
if (_grpcIsFaulty)
|
if (_grpcIsFaulty)
|
||||||
{
|
{
|
||||||
|
_grpcIsFaulty = false;
|
||||||
|
|
||||||
_logger.LogInformation("GRPC connection is restored, sending current server idents");
|
_logger.LogInformation("GRPC connection is restored, sending current server idents");
|
||||||
await _grpcIdentClient.ClearIdentsForServerAsync(new ServerMessage() { ServerId = _shardName }).ConfigureAwait(false);
|
await _grpcIdentClient.ClearIdentsForServerAsync(new ServerMessage() { ServerId = _shardName }).ConfigureAwait(false);
|
||||||
var msg = new ServerIdentMessage();
|
var msg = new ServerIdentMessage();
|
||||||
|
|
@ -143,7 +145,6 @@ public class GrpcClientIdentificationService : IHostedService
|
||||||
ServerId = _shardName
|
ServerId = _shardName
|
||||||
}));
|
}));
|
||||||
await _grpcIdentClient.RecreateServerIdentsAsync(msg).ConfigureAwait(false);
|
await _grpcIdentClient.RecreateServerIdentsAsync(msg).ConfigureAwait(false);
|
||||||
_grpcIsFaulty = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue