refactor: put lume.setReady in a boot function under registering types
This commit is contained in:
parent
812b064de1
commit
246d2d0131
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue