Skip to content

Commit

Permalink
concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Apr 12, 2024
1 parent 7993f03 commit 113db3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/core/MRPConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib/core/MRPNostr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class MRPNostr {
}

public async init(){
this._relay.init()
await this._relay.init()
this.monitors.init()
}

Expand Down

0 comments on commit 113db3a

Please sign in to comment.