fix BaseHub.get_timers_count
This commit is contained in:
@@ -301,5 +301,5 @@ class BaseHub(object):
|
|||||||
return self.excs
|
return self.excs
|
||||||
|
|
||||||
def get_timers_count(hub):
|
def get_timers_count(hub):
|
||||||
return max(len(x) for x in [hub.timers, hub.timers_by_greenlet.items(), hub.next_timers])
|
return max(len(x) for x in [hub.timers, hub.next_timers])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user