Skip to content

Commit

Permalink
Merge pull request #72 from Doist/kjh/bugfix
Browse files Browse the repository at this point in the history
Kjh/bugfix
  • Loading branch information
tartansandal authored Feb 16, 2024
2 parents 800711c + 22491a0 commit 4f5fd94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sqs-workers"
version = "0.5.13"
version = "0.5.14"
description = "An opinionated queue processor for Amazon SQS"
authors = ["Doist Developers <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion sqs_workers/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def _flush_batch_if_needed(self) -> None:

if self._est_message_size() > MAX_SQS_MESSAGE_SIZE:
# If we have batch of large messages, try to send half of it at a time
send_batch_size = SEND_BATCH_SIZE / 2
send_batch_size = SEND_BATCH_SIZE // 2

msgs = self._batched_messages[:send_batch_size]
self._batched_messages = self._batched_messages[send_batch_size:]
Expand Down

0 comments on commit 4f5fd94

Please sign in to comment.