Skip to content

Commit

Permalink
change time.sleep to asyncio.sleep in async func
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmith023 committed Aug 29, 2024
1 parent 4e8863f commit 057b3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weaviate/collections/batch/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ async def __send_batch(
)
else:
# sleep a bit to recover from the rate limit in other cases
time.sleep(2**highest_retry_count)
await asyncio.sleep(2**highest_retry_count)
await self.__uuid_lookup_lock.acquire()
self.__uuid_lookup.difference_update(
obj.uuid for obj in objs if obj.uuid not in readded_uuids
Expand Down

0 comments on commit 057b3dc

Please sign in to comment.