Skip to content

Replace most uses of context.reset_request_count() with clone()#5790

Merged
dessalines merged 5 commits intomainfrom
replace-reset-request-count
Jun 16, 2025
Merged

Replace most uses of context.reset_request_count() with clone()#5790
dessalines merged 5 commits intomainfrom
replace-reset-request-count

Conversation

@Nutomic
Copy link
Copy Markdown
Member

@Nutomic Nutomic commented Jun 16, 2025

Tests all seem to be passing like this, only remaining use of reset_request_count() is for settings import which may need to resolve a lot of objects, and for fetching community collections (moderators, featured posts). Of course production is different, so there may be other places which hit the limit with this change.

@Nutomic Nutomic force-pushed the replace-reset-request-count branch from 2ea5441 to 007be6d Compare June 16, 2025 10:03
@Nutomic Nutomic marked this pull request as ready for review June 16, 2025 13:39
Comment on lines +20 to +22
[features]
full = [
"lemmy_db_schema/full",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing this was needed because tests for this crate alone failed without it.

@dessalines dessalines merged commit 5c6e7c3 into main Jun 16, 2025
2 checks passed
@Nothing4You Nothing4You deleted the replace-reset-request-count branch September 11, 2025 17: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