Skip to content

Run rate limiter garbage collection before inserting new user#866

Open
joostjager wants to merge 1 commit intolightningdevkit:mainfrom
joostjager:rate-limiter-gc
Open

Run rate limiter garbage collection before inserting new user#866
joostjager wants to merge 1 commit intolightningdevkit:mainfrom
joostjager:rate-limiter-gc

Conversation

@joostjager
Copy link
Copy Markdown
Contributor

Efficiency improvement

@ldk-reviews-bot
Copy link
Copy Markdown

ldk-reviews-bot commented Apr 2, 2026

👋 Thanks for assigning @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

Move the GC pass from after insertion to before, so that stale entries
are reclaimed before allocating a new bucket. This avoids unnecessary
growth of the user map between GC cycles.

AI tools were used in preparing this commit.
@joostjager joostjager marked this pull request as ready for review April 2, 2026 14:36
@joostjager joostjager requested a review from tnull April 2, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants