From 9a8cddbbb626afaea007860c4338c5634432d901 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Tue, 3 Mar 2020 17:09:35 +0000 Subject: [PATCH] Don't set UV_THREADPOOL_SIZE if already set --- libraries/metrics/uv_threadpool_size.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/metrics/uv_threadpool_size.coffee b/libraries/metrics/uv_threadpool_size.coffee index c0947fee31..36b7466248 100644 --- a/libraries/metrics/uv_threadpool_size.coffee +++ b/libraries/metrics/uv_threadpool_size.coffee @@ -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}"