Skip to content

Commit

Permalink
fix(core): awaiting queuing of the messages
Browse files Browse the repository at this point in the history
  • Loading branch information
slvnperron committed Mar 2, 2019
1 parent b159ad5 commit fb153e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bp/core/services/middleware/event-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ export class EventEngine {

if (event.direction === 'incoming') {
incrementMetric('eventsIn.count')
this.incomingQueue.enqueue(event, 1, false)
await this.incomingQueue.enqueue(event, 1, false)
} else {
incrementMetric('eventsOut.count')
this.outgoingQueue.enqueue(event, 1, false)
await this.outgoingQueue.enqueue(event, 1, false)
}
}

Expand Down

0 comments on commit fb153e9

Please sign in to comment.