From 113db3afeb3d29f0b94422aa1b02edf3de356be6 Mon Sep 17 00:00:00 2001 From: dskvr Date: Fri, 12 Apr 2024 03:56:57 +0200 Subject: [PATCH] concurrency --- src/lib/core/MRPConfig.ts | 3 ++- src/lib/core/MRPNostr.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/core/MRPConfig.ts b/src/lib/core/MRPConfig.ts index 39f2feb..a69b263 100644 --- a/src/lib/core/MRPConfig.ts +++ b/src/lib/core/MRPConfig.ts @@ -27,7 +27,8 @@ export class MRPConfig extends MRPData { async init(){ this.begin() console.log('fetching config') - let result = await this.fetch() + let result: AppConfig | null = null; + result = await this.fetch() console.log('fetched config', result) if(this.event == null) result = this.create() this.event = result as AppConfig diff --git a/src/lib/core/MRPNostr.ts b/src/lib/core/MRPNostr.ts index 9315783..f1db593 100644 --- a/src/lib/core/MRPNostr.ts +++ b/src/lib/core/MRPNostr.ts @@ -37,7 +37,7 @@ export class MRPNostr { } public async init(){ - this._relay.init() + await this._relay.init() this.monitors.init() }