fix: reduce consumer poll timeout from 2000ms to 100ms

This commit is contained in:
Sreeram Venkatasubramanian 2026-04-07 14:19:59 +05:30 committed by Cyber MacGeddon
parent 4acd853023
commit f0c9039b76
2 changed files with 36 additions and 1 deletions

View file

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