fix: reduce consumer poll timeout from 2000ms to 100ms (#761)

This commit is contained in:
Sreeram Venkatasubramanian 2026-04-07 16:39:20 +05:30 committed by GitHub
parent 8f18ba0257
commit c737e8c356
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 36 additions and 1 deletions

View file

@ -160,7 +160,7 @@ class Consumer:
try:
msg = await asyncio.to_thread(
self.consumer.receive,
timeout_millis=2000
timeout_millis=100
)
except Exception as e:
# Handle timeout from any backend