Skip to content

Commit

Permalink
Update threadpool.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dt3310321 authored Jul 12, 2018
1 parent 744011b commit b1ec5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qcloud_cos/threadpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SimpleThreadPool:

def __init__(self, num_threads=5):
self._num_threads = num_threads
self._queue = Queue()
self._queue = Queue(num_threads)
self._lock = Lock()
self._active = False
self._workers = list()
Expand Down

0 comments on commit b1ec5fa

Please sign in to comment.