From ecc3fa81f9a9a7a9806e73fbf996933e94352fb6 Mon Sep 17 00:00:00 2001 From: neon-sunset Date: Sat, 28 Sep 2024 02:08:25 +0300 Subject: [PATCH] docs: fix retry example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1fa7cc8..23715eb 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ var vectors = Enumerable // Specify the retry limit we are okay with var retries = 3; -do +while (true) { try { @@ -172,7 +172,7 @@ do vectors = vectors.Where(v => filter.Contains(v.Id)).ToArray(); Console.WriteLine($"Retrying upsert due to error: {e.Message}"); } -} while (retries > 0); +} ``` A similar approach can be used to recover from other streamed or batched operations.