Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

lint: Fix type of initial 0 in queue monitoring.

Tim Abbott7fa8bafe81ef
diff --git a/zerver/worker/queue_processors.py b/zerver/worker/queue_processors.py
index d83d2c408f8..beb3e535dc1 100644
--- a/zerver/worker/queue_processors.py
+++ b/zerver/worker/queue_processors.py
@@ -180,7 +180,7 @@ class QueueProcessingWorker(ABC):
self.recent_consume_times: MutableSequence[Tuple[int, float]] = deque(maxlen=50)
self.consume_iteration_counter = 0
self.idle = True
- self.last_statistics_update_time = 0
+ self.last_statistics_update_time = 0.0
self.update_statistics(0)