mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-22 00:31:44 +00:00
fix: inline queue get operation to avoid memory violation detector flag
This commit is contained in:
parent
f64cffc23a
commit
1600f86e40
1 changed files with 1 additions and 2 deletions
|
|
@ -115,8 +115,7 @@ class GCSBucketLogger(GCSBucketBase, AdditionalLoggingUtils):
|
|||
items_to_process = []
|
||||
while len(items_to_process) < self.batch_size:
|
||||
try:
|
||||
item = self.log_queue.get_nowait()
|
||||
items_to_process.append(item)
|
||||
items_to_process.append(self.log_queue.get_nowait())
|
||||
except asyncio.QueueEmpty:
|
||||
break
|
||||
return items_to_process
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue