remove some trash

This commit is contained in:
”minicx” 2022-12-06 12:36:50 +03:00
parent cbb877a6e3
commit 927b487672

View file

@ -142,7 +142,7 @@ const addAccounts: ()=>Promise<void>=async ()=>{
const farm: ()=>Promise<void>=async ()=>{ const farm: ()=>Promise<void>=async ()=>{
let usedIP:usedIPInterface[]=[]; let usedIP:usedIPInterface[]=[];
const proccesGroup=async (workersGroups:AccountInterface[],ports: portsInterface,container: Docker.Container)=>{ const proccesGroup=async (workersGroups:AccountInterface[],ports: portsInterface)=>{
workersLoop: workersLoop:
@ -250,8 +250,6 @@ const farm: ()=>Promise<void>=async ()=>{
} }
return false; return false;
} else { } else {
return true return true
} }
@ -397,8 +395,7 @@ const farm: ()=>Promise<void>=async ()=>{
control:_ports[i*3+2], control:_ports[i*3+2],
minerPort: await miner.port minerPort: await miner.port
}, }
containers[i]
)); ));
} }
@ -443,7 +440,7 @@ const farm: ()=>Promise<void>=async ()=>{
try{ try{
await farm(); await farm();
} catch (err){ } catch (err){
logger.error(`Unknown error\n${err}`); logger.error(`Unknown error\n${err.stack}\n${typeof err}`);
break; break;
} }
} }