Skip to content

Commit

Permalink
Desktop: Remove plugin backoff handler for now
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed May 17, 2022
1 parent 81ea66f commit 7ec3a7b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/app-desktop/services/plugins/PluginRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export default class PluginRunner extends BasePluginRunner {
return cb(...args);
}

// @ts-ignore
private backOffHandler(pluginId: string): BackOffHandler {
if (!this.backOffHandlers_[pluginId]) {
this.backOffHandlers_[pluginId] = new BackOffHandler(pluginId);
Expand Down Expand Up @@ -159,12 +160,12 @@ export default class PluginRunner extends BasePluginRunner {

this.recordCallStat(plugin.id);

try {
await this.backOffHandler(plugin.id).wait(fullPath, debugMappedArgs);
} catch (error) {
logger.error(error);
return;
}
// try {
// await this.backOffHandler(plugin.id).wait(fullPath, debugMappedArgs);
// } catch (error) {
// logger.error(error);
// return;
// }

let result: any = null;
let error: any = null;
Expand Down

0 comments on commit 7ec3a7b

Please sign in to comment.