1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00

fix: even-store should not block on emit

This commit is contained in:
Ivar Conradi Østhus 2021-02-02 13:27:11 +01:00
parent a320b6475d
commit 3a983d291c
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View File

@ -25,7 +25,7 @@ class EventStore extends EventEmitter {
data: event.data,
tags: event.tags ? JSON.stringify(event.tags) : [],
});
this.emit(event.type, event);
process.nextTick(() => this.emit(event.type, event));
}
async getEvents() {