Skip to content

Commit

Permalink
chore: explicitly set All in count items request.
Browse files Browse the repository at this point in the history
  • Loading branch information
malandis committed Jan 19, 2024
1 parent b83617b commit 42b18ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/momento/internal/aio/_vector_index_data_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ async def count_items(
self._log_issuing_request("CountItems", {"index_name": index_name})
_validate_index_name(index_name)

request = vectorindex_pb._CountItemsRequest(index_name=index_name)
request = vectorindex_pb._CountItemsRequest(
index_name=index_name, all=vectorindex_pb._CountItemsRequest.All()
)
response: vectorindex_pb._CountItemsResponse = await self._build_stub().CountItems(
request, timeout=self._default_deadline_seconds
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ def count_items(
self._log_issuing_request("CountItems", {"index_name": index_name})
_validate_index_name(index_name)

request = vectorindex_pb._CountItemsRequest(index_name=index_name)
request = vectorindex_pb._CountItemsRequest(
index_name=index_name, all=vectorindex_pb._CountItemsRequest.All()
)
response: vectorindex_pb._CountItemsResponse = self._build_stub().CountItems(
request, timeout=self._default_deadline_seconds
)
Expand Down

0 comments on commit 42b18ee

Please sign in to comment.