From a58caa17e283f669e5b158171159a0492370769a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 13 Jan 2023 23:28:58 +0100 Subject: [PATCH] Decreased time of EventQueue (2 -> 1 second) to make entity events more responsive --- platypush/entities/_engine/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/entities/_engine/queue.py b/platypush/entities/_engine/queue.py index bf8014eb8..486d7b0e7 100644 --- a/platypush/entities/_engine/queue.py +++ b/platypush/entities/_engine/queue.py @@ -13,7 +13,7 @@ class EntitiesQueue(Queue): upstream caller. """ - def __init__(self, stop_event: Optional[Event] = None, timeout: float = 2.0): + def __init__(self, stop_event: Optional[Event] = None, timeout: float = 1.0): super().__init__() self._timeout = timeout self._should_stop = stop_event