diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-07-01 21:52:11 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-07-01 21:52:11 +0300 |
commit | 6f8d419c3e54a26b21067ee39da105aa74e4ec42 (patch) | |
tree | e2017b20726b6c7ce30669492928c665500a2030 | |
parent | 80df9e26d147c233b78ece17a665f6066d8c11cf (diff) |
polaris_kettle_bot: clean code
-rwxr-xr-x | src/polaris_kettle_bot.py | 11 |
1 files changed, 0 insertions, 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 = [] |