remove some trash
This commit is contained in:
parent
cbb877a6e3
commit
927b487672
9
index.ts
9
index.ts
|
@ -142,7 +142,7 @@ const addAccounts: ()=>Promise<void>=async ()=>{
|
|||
|
||||
const farm: ()=>Promise<void>=async ()=>{
|
||||
let usedIP:usedIPInterface[]=[];
|
||||
const proccesGroup=async (workersGroups:AccountInterface[],ports: portsInterface,container: Docker.Container)=>{
|
||||
const proccesGroup=async (workersGroups:AccountInterface[],ports: portsInterface)=>{
|
||||
|
||||
|
||||
workersLoop:
|
||||
|
@ -250,8 +250,6 @@ const farm: ()=>Promise<void>=async ()=>{
|
|||
|
||||
}
|
||||
return false;
|
||||
|
||||
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
|
@ -397,8 +395,7 @@ const farm: ()=>Promise<void>=async ()=>{
|
|||
control:_ports[i*3+2],
|
||||
minerPort: await miner.port
|
||||
|
||||
},
|
||||
containers[i]
|
||||
}
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -443,7 +440,7 @@ const farm: ()=>Promise<void>=async ()=>{
|
|||
try{
|
||||
await farm();
|
||||
} catch (err){
|
||||
logger.error(`Unknown error\n${err}`);
|
||||
logger.error(`Unknown error\n${err.stack}\n${typeof err}`);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue