Publish daemon SoA view from tick result
This commit is contained in:
parent
131818e924
commit
6172136de8
3 changed files with 13 additions and 6 deletions
|
|
@ -751,10 +751,10 @@ static async Task PublishDaemonApiDocumentsAsync(
|
|||
AetheriaRuntimeDaemonTickResult result)
|
||||
{
|
||||
await node.PutDaemonFrameAsync(result.Frame).ConfigureAwait(false);
|
||||
if (AetheriaRuntimeDaemonSoaViewStore.TryReadView(node.StatePath, out var soaView) &&
|
||||
string.Equals(soaView.Schema, AetheriaRuntimeDaemonSchemas.SoaView, StringComparison.Ordinal))
|
||||
if (result.SoaView != null &&
|
||||
string.Equals(result.SoaView.Schema, AetheriaRuntimeDaemonSchemas.SoaView, StringComparison.Ordinal))
|
||||
{
|
||||
await node.PutDaemonSoaViewAsync(soaView).ConfigureAwait(false);
|
||||
await node.PutDaemonSoaViewAsync(result.SoaView).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
if (result.ProviderAdvertisement != null)
|
||||
|
|
|
|||
Loading…
Reference in a new issue