Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

A set of improvements to the Limiter - #3571

Merged
richvdh merged 4 commits into
developfrom
rav/limiter_fixes
Jul 20, 2018
Merged

richvdh merged 4 commits into
developfrom
rav/limiter_fixes

Conversation

@richvdh

@richvdh richvdh commented Jul 20, 2018

Copy link
Copy Markdown
Member

richvdh added 4 commits July 20, 2018 12:37
* give them names, to improve logging
* use a deque rather than a list for efficiency
Linearizer was effectively a Limiter with max_count=1, so rather than
maintaining two sets of code, let's combine them.
@richvdh

richvdh commented Jul 20, 2018

Copy link
Copy Markdown
Member Author

(hopefully the individual commits are easier to review than the whole thing here)

@richvdh

richvdh commented Jul 20, 2018

Copy link
Copy Markdown
Member Author

(because this renames Limiter to Linearizer, we'll need to be careful when merging to matrix-org-hotfixes, which has an extra Limiter instance)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants