From 4394387c3997811510aab91f5093d964555ad42d Mon Sep 17 00:00:00 2001 From: Steven Vandevelde Date: Wed, 4 Dec 2024 14:10:01 +0100 Subject: [PATCH] fix: Add missing returns in `connection.loaded` Promise --- src/blockstore/connection-base.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blockstore/connection-base.ts b/src/blockstore/connection-base.ts index 9804660d..40409d02 100644 --- a/src/blockstore/connection-base.ts +++ b/src/blockstore/connection-base.ts @@ -65,8 +65,8 @@ export abstract class ConnectionBase implements Connection { }); this.loader.remoteMetaStore = remote; this.loaded = this.loader.ready().then(async () => { - remote.load().then(async () => { - (await throwFalsy(this.loader).WALStore()).process(); + return remote.load().then(async () => { + return (await throwFalsy(this.loader).WALStore()).process(); }); }); }