Skip to content

Commit

Permalink
Added unexpected case handling
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackGad committed Apr 19, 2024
1 parent 3c8a33b commit f5613dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Milvus.Client/MilvusCollection.Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ public async IAsyncEnumerable<IReadOnlyList<FieldData>> QueryWithIteratorAsync(
var leftItemsCount = userLimit - processedItemsCount;

// If user limit is reached, we should break the loop
if(leftItemsCount == 0) yield break;
if(leftItemsCount <= 0) yield break;

// Setup next iteration limit and expression
ReplaceKeyValueItems(
Expand Down

0 comments on commit f5613dc

Please sign in to comment.