Skip to content

Commit

Permalink
docs: fix retry example
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-sunset authored Sep 27, 2024
1 parent beb28b7 commit ecc3fa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ var vectors = Enumerable

// Specify the retry limit we are okay with
var retries = 3;
do
while (true)
{
try
{
Expand All @@ -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.
Expand Down

0 comments on commit ecc3fa8

Please sign in to comment.