mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02: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