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
commit 1fac5ec6d6
3 changed files with 1892 additions and 4 deletions

File diff suppressed because it is too large Load diff

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",

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}"