Delete daemon latest sidecar stores
This commit is contained in:
parent
382105458e
commit
10df4d2152
9 changed files with 51 additions and 510 deletions
|
|
@ -1311,16 +1311,12 @@ static async Task EnsureVerseAuthorityPolicyAsync(
|
|||
{
|
||||
var existing = await node.VerseAuthorityPolicy().ReadAsync().ConfigureAwait(false);
|
||||
if (existing != null && string.Equals(existing.Schema, AetheriaRuntimeVerseAuthoritySchemas.Policy, StringComparison.Ordinal))
|
||||
{
|
||||
AetheriaRuntimeDaemonPublicationStore.PublishVerseAuthorityPolicy(node.StatePath, existing);
|
||||
return;
|
||||
}
|
||||
|
||||
var policy = AetheriaRuntimeVerseAuthorityPolicyDocument.TrustedCoop(options.VerseId, options.DaemonId);
|
||||
await node.VerseAuthorityPolicy()
|
||||
.ReplaceAsync(policy)
|
||||
.ConfigureAwait(false);
|
||||
AetheriaRuntimeDaemonPublicationStore.PublishVerseAuthorityPolicy(node.StatePath, policy);
|
||||
}
|
||||
|
||||
static async Task<AetheriaRuntimeRunCheckpointCommit?> ReadRuntimeRunCheckpointAsync(AetheriaStateNode node)
|
||||
|
|
|
|||
Loading…
Reference in a new issue