Skip to content

Commit

Permalink
remove await in terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolezhniuk committed Jul 14, 2023
1 parent dbd5af2 commit 9fcad3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/proof/prover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ export class NativeProver {

private async terminateCurve(): Promise<void> {
const curve = await getCurveFromName(NativeProver.curveName);
await curve.terminate();
curve.terminate();
}
}
2 changes: 1 addition & 1 deletion types/ffjavascript.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
declare module 'ffjavascript' {
export function getCurveFromName(name: string): Promise<{ terminate: () => Promise<void> }>;
export function getCurveFromName(name: string): Promise<{ terminate: () => void }>;
}

0 comments on commit 9fcad3e

Please sign in to comment.