mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-30 02:46:23 +02:00
fix: reduce consumer poll timeout from 2000ms to 100ms (#761)
This commit is contained in:
parent
8f18ba0257
commit
c737e8c356
2 changed files with 36 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue