new(all): Paralel bot loading.
This commit is contained in:
parent
1d1a7cc98f
commit
43c05ad135
1 changed files with 2 additions and 2 deletions
|
@ -202,12 +202,12 @@ export class GBMinService {
|
||||||
|
|
||||||
await throttledPromiseAll(instances.map((async instance => {
|
await throttledPromiseAll(instances.map((async instance => {
|
||||||
try {
|
try {
|
||||||
this.bar1.update(i, { botId: instance.botId });
|
this.bar1.update(i++, { botId: instance.botId });
|
||||||
|
|
||||||
await this['mountBot'](instance);
|
await this['mountBot'](instance);
|
||||||
GBDeployer.mountGBKBAssets(`${instance.botId}.gbkb`,
|
GBDeployer.mountGBKBAssets(`${instance.botId}.gbkb`,
|
||||||
instance.botId, `${instance.botId}.gbkb`);
|
instance.botId, `${instance.botId}.gbkb`);
|
||||||
GBLog.info(`Bot: ${instance.botId} loaded.`)
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
GBLog.error(`Error mounting bot ${instance.botId}: ${error.message}\n${error.stack}`);
|
GBLog.error(`Error mounting bot ${instance.botId}: ${error.message}\n${error.stack}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue