Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory issues #26

Merged
merged 3 commits into from
Aug 12, 2020
Merged

Conversation

grahamburgsma
Copy link
Contributor

I've fixed the memory issue that I was seeing in #25. I think it had to do with the getData and getBytes usage, but not entirely sure why. To make it easier and simplify the code I switched out HTTPClient for Vapor's Client which is nicer to use. I also generalized the error handing since it differed slightly in multiple places.

You can see here the memory usage is a lot better after sending notifications.
Screen Shot 2020-08-11 at 8 25 09 AM

@MihaelIsaev MihaelIsaev merged commit 919d41a into MihaelIsaev:master Aug 12, 2020
@grahamburgsma grahamburgsma deleted the memory-issues branch August 12, 2020 12:10
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