You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/11 11:15:03 UTC
[incubator-ponymail-foal] branch master updated: more linting
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new c2cfa77 more linting
c2cfa77 is described below
commit c2cfa7741d66d532d99300c87022a39e1535b72a
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Sep 11 13:11:47 2020 +0200
more linting
---
server/plugins/offloader.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/server/plugins/offloader.py b/server/plugins/offloader.py
index 0f6fea1..11307bc 100644
--- a/server/plugins/offloader.py
+++ b/server/plugins/offloader.py
@@ -25,6 +25,7 @@ DEBUG = False
class ExecutorPool:
"""A pool of runners for offloading blocking processes to threads, so that async processing can continue"""
+
def __init__(self, threads=None):
# If no thread count is specified, will default to: min(32, os.cpu_count() + 4)
self.threads = concurrent.futures.ThreadPoolExecutor(max_workers=threads)