Skip to content

Commit dd8b621

Browse files
committed
dispatcher: a little performance improvment
1 parent 78f9bdc commit dd8b621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegram/ext/dispatcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _pooled():
4242
"""
4343
A wrapper to run a thread in a thread pool
4444
"""
45-
while True:
45+
while 1:
4646
try:
4747
func, args, kwargs = ASYNC_QUEUE.get()
4848

0 commit comments

Comments
 (0)