Skip to content

Commit

Permalink
Update packages/multichain/src/middlewares/MultichainMiddlewareManage…
Browse files Browse the repository at this point in the history
…r.ts

Co-authored-by: Elliot Winkler <[email protected]>
  • Loading branch information
jiexi and mcmire authored Dec 17, 2024
1 parent 4a7ae5d commit c54714f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ export class MultichainMiddlewareManager {
#removeMiddleware(middlewareEntry: MiddlewareEntry) {
// When the destroy function on the middleware is async,
// we don't need to wait for it complete
// eslint-disable-next-line no-void
void middlewareEntry.middleware.destroy?.();
Promise.resolve(middlewareEntry.middleware.destroy?.()).catch(() => {
// do nothing
});

this.#removeMiddlewareEntry(middlewareEntry);
}
Expand Down

0 comments on commit c54714f

Please sign in to comment.