Skip to content

Commit

Permalink
Merge pull request #95 from hyperledger/main
Browse files Browse the repository at this point in the history
fix(routing): async message pickup on init (openwallet-foundation#1093)
  • Loading branch information
NB-MikeRichardson authored Nov 10, 2022
2 parents e35ea9e + 15cfd91 commit cbb97d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/modules/routing/RecipientApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ export class RecipientApi {
// Poll for messages from mediator
const defaultMediator = await this.findDefaultMediator()
if (defaultMediator) {
await this.initiateMessagePickup(defaultMediator)
this.initiateMessagePickup(defaultMediator).catch((error) => {
this.logger.warn(`Error initiating message pickup with mediator ${defaultMediator.id}`, { error })
})
}
}

Expand Down

0 comments on commit cbb97d9

Please sign in to comment.