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

Removing memleaks + more options for the Utils #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrija-hers
Copy link
Contributor

Majority of the proposed PR deals with proper handling of variables so that the garbage collector can easily do its job.

Besides the memleak-removal stuff, we added 2 more options for the Utils instance:

  1. nocache - if true-ish, then the Utils instance will not cache anything (especially important for the case of saving the response from superagent, that leads to heavy memory consumption)
  2. timeout - if present, it will be used against the superagent Response, so that problematic links do not take too long to complete

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.

1 participant