mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +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,
|
data: event.data,
|
||||||
tags: event.tags ? JSON.stringify(event.tags) : [],
|
tags: event.tags ? JSON.stringify(event.tags) : [],
|
||||||
});
|
});
|
||||||
this.emit(event.type, event);
|
process.nextTick(() => this.emit(event.type, event));
|
||||||
}
|
}
|
||||||
|
|
||||||
async getEvents() {
|
async getEvents() {
|
||||||
|
Loading…
Reference in New Issue
Block a user