Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
piphone-sip
Commits
54ce4d47
Commit
54ce4d47
authored
Aug 04, 2016
by
okhin
Browse files
Need a max_worker parmaeters to the ThreadPoolExecutor
parent
735f995e
Pipeline
#75
passed with stage
in 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
piphone.py
View file @
54ce4d47
...
...
@@ -47,7 +47,7 @@ application = app = Bottle(autojson=False)
app
.
install
(
SQLitePlugin
(
dbfile
=
config
[
'piphone'
][
'db'
]))
app
.
install
(
JSONPlugin
(
json_dumps
=
lambda
s
:
json
.
dumps
(
s
,
cls
=
PiphoneJSONEncoder
)))
threads
=
concurrent
.
futures
.
ThreadPoolExecutor
()
threads
=
concurrent
.
futures
.
ThreadPoolExecutor
(
max_workers
=
5
)
loop
=
asyncio
.
get_event_loop
()
running
=
False
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment