Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeralsing committed Feb 29, 2024
1 parent 65abc07 commit b93fa8d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Proto.Cluster/Cluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,18 +315,18 @@ public async Task ShutdownAsync(bool graceful = true, string reason = "")
// // Cancel the primary CancellationToken first which will shut down a number of concurrent systems simultaneously.
// await System.ShutdownAsync(reason).ConfigureAwait(false);
//
// // Shut down the rest of the dependencies in reverse order that they were started.
// await Gossip.ShutdownAsync().ConfigureAwait(false);
//
// if (graceful)
// {
// await IdentityLookup.ShutdownAsync().ConfigureAwait(false);
// }
//
// await Remote.ShutdownAsync(graceful).ConfigureAwait(false);
//
// _shutdownCompletedTcs.TrySetResult(true);
// Logger.LogInformation("Stopped Cluster {Id}", System.Id);
// Shut down the rest of the dependencies in reverse order that they were started.
await Gossip.ShutdownAsync().ConfigureAwait(false);

if (graceful)
{
await IdentityLookup.ShutdownAsync().ConfigureAwait(false);
}

await Remote.ShutdownAsync(graceful).ConfigureAwait(false);

_shutdownCompletedTcs.TrySetResult(true);
Logger.LogInformation("Stopped Cluster {Id}", System.Id);
}

/// <summary>
Expand Down

0 comments on commit b93fa8d

Please sign in to comment.