mirror of
https://github.com/Yonle/bostr.git
synced 2025-03-18 05:42:03 +01:00
bouncer: trigger EOSE according to max_known_events value if available
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
63a653ae51
commit
65cddf8030
@ -79,6 +79,9 @@ parentPort.on('message', m => {
|
||||
filters[fn].limit = ws.forcedLimit;
|
||||
}
|
||||
|
||||
if (max_known_events && getFilterLimit(filter) > max_known_events)
|
||||
filter.limit = max_known_events;
|
||||
|
||||
ws.subs[origID] = filters;
|
||||
ws.events[origID] = new Set();
|
||||
ws.pause_subs.delete(origID);
|
||||
|
Loading…
x
Reference in New Issue
Block a user