refactor: put lume.setReady in a boot function under registering types

This commit is contained in:
Derrick Hammer 2023-10-12 13:24:52 -04:00
parent 812b064de1
commit 246d2d0131
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 2 deletions

View File

@ -95,6 +95,7 @@ async function boot(lume: LumeContextType) {
BOOT_FUNCTIONS.push(async () => await handshakeClient.register()); BOOT_FUNCTIONS.push(async () => await handshakeClient.register());
BOOT_FUNCTIONS.push(async () => await ethClient.register()); BOOT_FUNCTIONS.push(async () => await ethClient.register());
BOOT_FUNCTIONS.push(async () => await ipfsClient.register()); BOOT_FUNCTIONS.push(async () => await ipfsClient.register());
BOOT_FUNCTIONS.push(async () => lume.setReady(true));
const resolvers = [ const resolvers = [
"zrjCnUBqmBqXXcc2yPnq517sXQtNcfZ2BHgnVTcbhSYxko7", // CID "zrjCnUBqmBqXXcc2yPnq517sXQtNcfZ2BHgnVTcbhSYxko7", // CID
@ -108,8 +109,6 @@ async function boot(lume: LumeContextType) {
await bootup(); await bootup();
lume.setReady(true);
await Promise.all([ await Promise.all([
ethClient.ready(), ethClient.ready(),
handshakeClient.ready(), handshakeClient.ready(),