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/reduce open file handles #51

Merged
merged 2 commits into from
Feb 1, 2022
Merged

Conversation

lili2311
Copy link
Contributor

@lili2311 lili2311 commented Jan 31, 2022

  • Tests written and linted ℹ︎
  • Documentation written ℹ︎
  • Commit history is tidy ℹ︎

What this does

Reduce open handles by reading snyk configs once at class creation and not on every request.

Notes for the reviewer

Refactored the class to set the snykToken & API based on config / nev vars before any requests are made instead of at each request time. This info is not going to change after the requestManager is instantiated.

@lili2311 lili2311 self-assigned this Jan 31, 2022
@lili2311 lili2311 merged commit 39601ba into develop Feb 1, 2022
@aarlaud
Copy link
Contributor

aarlaud commented Feb 1, 2022

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants