Skip to content

Commit b1ec5fa

Browse files
authored
Update threadpool.py
1 parent 744011b commit b1ec5fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qcloud_cos/threadpool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class SimpleThreadPool:
4646

4747
def __init__(self, num_threads=5):
4848
self._num_threads = num_threads
49-
self._queue = Queue()
49+
self._queue = Queue(num_threads)
5050
self._lock = Lock()
5151
self._active = False
5252
self._workers = list()

0 commit comments

Comments
 (0)