From e6cf90a230f7112315fbfe7d1c5e78044c82775f Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Fri, 19 May 2017 17:21:50 -0700 Subject: [PATCH] Update to make sure we clear the shares every submit. --- lib/remoteShare.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/remoteShare.js b/lib/remoteShare.js index 0dc884f..450fb3d 100644 --- a/lib/remoteShare.js +++ b/lib/remoteShare.js @@ -75,9 +75,8 @@ if (cluster.isMaster) { setInterval(function(){ if (Object.keys(shareData).length > 0){ - if (global.database.storeBulkShares(shareData)){ - shareData = []; - } + global.database.storeBulkShares(shareData); + shareData = []; } }, 1000);