From 9c875de7e0e369f81339c0005ea67d8eb0dd2aaa Mon Sep 17 00:00:00 2001
From: Ash Beitz <8304894+ashbeitz@users.noreply.github.com>
Date: Mon, 4 Mar 2024 11:27:40 -0800
Subject: [PATCH] Improved seat massager sample
---
.../src/dtdl-validator/ModelsRepositoryClientExtensions.cs | 4 ++--
samples/seat_massager/consumer/src/main.rs | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dtdl-tools/src/dtdl-validator/ModelsRepositoryClientExtensions.cs b/dtdl-tools/src/dtdl-validator/ModelsRepositoryClientExtensions.cs
index 118f0e47..5f3cc782 100644
--- a/dtdl-tools/src/dtdl-validator/ModelsRepositoryClientExtensions.cs
+++ b/dtdl-tools/src/dtdl-validator/ModelsRepositoryClientExtensions.cs
@@ -10,10 +10,10 @@ internal static class ModelsRepositoryClientExtensions
{
///
/// The Parser's DTMI resolver.
- /// It asynchronously gets the DTDL content associated with each of the provided DTMIs from the models repository.
+ /// It asynchronously gets the model definitions (specified in DTDL) associated with each of the provided DTMIs from the models repository.
///
/// The models repository client.
- ///
+ /// The DTMIs whose model definitions should be returned.
/// The cancellation token.
/// The model definitions for the provided DTMIs.
public static async IAsyncEnumerable ParserDtmiResolverAsync(
diff --git a/samples/seat_massager/consumer/src/main.rs b/samples/seat_massager/consumer/src/main.rs
index 4ec48520..44e4ee46 100644
--- a/samples/seat_massager/consumer/src/main.rs
+++ b/samples/seat_massager/consumer/src/main.rs
@@ -107,6 +107,7 @@ fn start_seat_massage_steps(
break;
} else {
// Ignore this answer request, as it is not the one that we are expecting.
+ warn!("Received an unexpected answer request with ask_id '{}'. We will retry in a moment.", request.ask_id);
// Immediately try again. This was not a failure, so we do not increment attempts_after_failure or sleep.
continue;
}