From 2d37916a872258ea48c60aa3f61fa5da8df6ec0b Mon Sep 17 00:00:00 2001 From: silvanshade Date: Sat, 18 Jun 2022 15:03:36 -0600 Subject: [PATCH] Refactoring --- packages/app/src/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/client.ts b/packages/app/src/client.ts index 4e31409..9012541 100644 --- a/packages/app/src/client.ts +++ b/packages/app/src/client.ts @@ -66,8 +66,8 @@ export default class Client extends jsrpc.JSONRPCServerAndClient { // notify "initialized": client --> server this.notify(proto.InitializedNotification.type.method, {}); - await Promise.allSettled(this.afterInitializedHooks.map((f: () => Promise) => f())); - await Promise.allSettled([this.processNotifications(), this.processRequests()]); + await Promise.all(this.afterInitializedHooks.map((f: () => Promise) => f())); + await Promise.all([this.processNotifications(), this.processRequests()]); } // eslint-disable-next-line @typescript-eslint/require-await