From 6f8d419c3e54a26b21067ee39da105aa74e4ec42 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 1 Jul 2022 21:52:11 +0300 Subject: polaris_kettle_bot: clean code --- src/polaris_kettle_bot.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/polaris_kettle_bot.py b/src/polaris_kettle_bot.py index 52ca9e5..5b8c312 100755 --- a/src/polaris_kettle_bot.py +++ b/src/polaris_kettle_bot.py @@ -206,22 +206,11 @@ class KettleController(threading.Thread, def run(self): while not self._stopped: - # do_restart_srv = False - # - # with self._lock: - # if self._restart_server_at != 0 and time.time() - self._restart_server_at: - # self._restart_server_at = 0 - # do_restart_srv = True - # - # if do_restart_srv: - # self.kettle_connect() - updates = [] deletions = [] forget = [] with self._muts_lock and self._info_lock: - # self._logger.debug('muts size: '+str(len(self._muts))) if self._muts and self._accumulated_updates and (self._info_flushed_time == 0 or time.time() - self._info_flushed_time >= 1): deletions = [] -- cgit v1.2.3