Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
bouncer: trigger EOSE according to max_known_events value if available
Browse files Browse the repository at this point in the history
Signed-off-by: Yonle <yonle@lecturify.net>
  • Loading branch information
Yonle committed May 11, 2024
1 parent 63a653a commit 65cddf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions worker_bouncer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 65cddf8

Please sign in to comment.