fix index and iteration for clear

This commit is contained in:
InspectorCaracal 2022-04-15 10:14:54 -06:00 committed by GitHub
parent b3b87a5a1c
commit 00578a6c5d

View file

@ -585,9 +585,9 @@ class TickerHandler(object):
self.ticker_pool.stop(interval)
if interval:
self.ticker_storage = dict(
(store_key, store_key)
for store_key in self.ticker_storage
if store_key[1] != interval
(store_key, store_value)
for store_key, store_value in self.ticker_storage.items()
if store_key[3] != interval
)
else:
self.ticker_storage = {}