From 7bd0c96c578300e1863b15e9409747a52999390e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 15 Nov 2018 17:19:55 +0100 Subject: [PATCH] server: Remove special case for sync request lag calculation. This is now handled in nio. --- matrix/server.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/matrix/server.py b/matrix/server.py index 181136a..bff5536 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -1034,13 +1034,6 @@ class MatrixServer(object): def handle_response(self, response): # type: (Response) -> None self.lag = response.elapsed * 1000 - - # If the response was a sync response and contained a timeout the - # timeout is expected and should be removed from the lag. - # TODO the timeout isn't a constant - if isinstance(response, SyncResponse): - self.lag = max(0, self.lag - (30000)) - self.lag_done = True W.bar_item_update("lag")