mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
fix: even-store should not block on emit
This commit is contained in:
parent
a320b6475d
commit
3a983d291c
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user