Merge pull request #24 from overleaf/spd-dont-overwrite-threadpool-setting

Don't set UV_THREADPOOL_SIZE if already set
This commit is contained in:
Simon Detheridge
2020-03-04 10:37:36 +00:00
committed by GitHub
3 changed files with 1892 additions and 4 deletions
+1888 -1
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "metrics-sharelatex",
"version": "2.4.0",
"version": "2.5.0",
"description": "A drop-in metrics and monitoring module for node.js apps",
"repository": {
"type": "git",
+3 -2
View File
@@ -1,2 +1,3 @@
process.env.UV_THREADPOOL_SIZE=16
console.log "Set UV_THREADPOOL_SIZE=#{process.env.UV_THREADPOOL_SIZE}"
unless process.env.UV_THREADPOOL_SIZE
process.env.UV_THREADPOOL_SIZE=16
console.log "Set UV_THREADPOOL_SIZE=#{process.env.UV_THREADPOOL_SIZE}"