From f5613dc3000908e5481852d4fcf30edc0d689652 Mon Sep 17 00:00:00 2001 From: Volodymyr Shkolka Date: Fri, 19 Apr 2024 17:47:41 +0300 Subject: [PATCH] Added unexpected case handling --- Milvus.Client/MilvusCollection.Entity.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Milvus.Client/MilvusCollection.Entity.cs b/Milvus.Client/MilvusCollection.Entity.cs index 3bc7f41..7cd8bb3 100644 --- a/Milvus.Client/MilvusCollection.Entity.cs +++ b/Milvus.Client/MilvusCollection.Entity.cs @@ -534,7 +534,7 @@ public async IAsyncEnumerable> 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(