update
This commit is contained in:
@ -15,8 +15,8 @@ export class Bobcat {
|
||||
public static async createFromNetworkAddress (networkAddressArg: string) {
|
||||
const newBobcat = new Bobcat(networkAddressArg);
|
||||
try {
|
||||
await newBobcat.checkMinerStatus();
|
||||
await newBobcat.gatherMinerDetails();
|
||||
await plugins.smartpromise.timeoutAndContinue(newBobcat.checkMinerStatus());
|
||||
await plugins.smartpromise.timeoutAndContinue(newBobcat.gatherMinerDetails());
|
||||
} catch (err) {
|
||||
console.log('initial adding completed with errors');
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ export class BobcatManager {
|
||||
await plugins.smartdelay.delayFor(10000);
|
||||
for (const bobcat of this.bobcats) {
|
||||
console.log(`now running maintenance on ${bobcat.latestMinerDetails.animal} at ${bobcat.networkAddress}`);
|
||||
await bobcat.runMaintenance();
|
||||
await plugins.smartpromise.timeoutAndContinue(bobcat.runMaintenance());
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1,11 +1,13 @@
|
||||
import * as smartdelay from '@pushrocks/smartdelay';
|
||||
import * as smartnetwork from '@pushrocks/smartnetwork';
|
||||
import * as smartpromise from '@pushrocks/smartpromise';
|
||||
import * as smartrequest from '@pushrocks/smartrequest';
|
||||
import * as taskbuffer from '@pushrocks/taskbuffer';
|
||||
|
||||
export {
|
||||
smartdelay,
|
||||
smartnetwork,
|
||||
smartpromise,
|
||||
smartrequest,
|
||||
taskbuffer,
|
||||
}
|
||||
|
Reference in New Issue
Block a user