Skip to content

Commit

Permalink
undoing async Supervisor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-ant committed Sep 5, 2024
1 parent 7addf73 commit 31c2b51
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions services/user/Supervisor/ui/src/supervisor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class Supervisor implements AppInterface {
}

// Manages callstack and calls plugins
async call(sender: OriginationData, args: QualifiedFunctionCallArgs): Promise<any> {
call(sender: OriginationData, args: QualifiedFunctionCallArgs): any {
assertTruthy(this.context, "Uninitialized call context");
assertTruthy(this.parentOrigination, "Uninitialized call origination");

Expand All @@ -192,8 +192,6 @@ export class Supervisor implements AppInterface {
`Tried to call plugin ${service}:${plugin} before initialization`,
);

await p.plugin.ready;

this.context.stack.push(sender, args);

let ret: any;
Expand Down Expand Up @@ -315,7 +313,7 @@ export class Supervisor implements AppInterface {
this.parentOrigination,
"Parent origination corrupted",
);
const result = await this.call(this.parentOrigination, args);
const result = this.call(this.parentOrigination, args);

// Post execution assertions
assert(this.context.stack.isEmpty(), "Callstack should be empty");
Expand Down

0 comments on commit 31c2b51

Please sign in to comment.