mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-12-01 11:43:58 +01:00
Update to make sure we clear the shares every submit.
This commit is contained in:
+2
-3
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user