Fix memory leak and clean up duplicate REST client #30
No reviewers
Labels
No labels
breaking
bug
dependency
docs
enhancement
feature
misc
refactor
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ElZeckos/Temp-Voice-URC!30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/refactor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TLDR;
Small refactors that improve memory usage and code cleanliness without changing behavior.
Created a shared REST module to avoid duplicate Discord API clients.
Cached WebhookClients in bridge handler to prevent memory bloat.
Removed the unbounded Set that was tracking recent messages.
Added better error logging for guild events and command registration.
@ElZeckos Test before merging this PR to main and release it.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.