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: Remove map entry after finding match #124

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

MikeGoldsmith
Copy link
Contributor

Which problem is this PR solving?

After updating the http matcher to use a normal map in #117, we didn't remove entry keys from the map which caused it to continually grow.

Short description of the changes

  • Delete entries from the map after finding a match

How to verify that this has the expected result

Memory consumption will be more consistent as the map does not hold items forever.

@MikeGoldsmith MikeGoldsmith added the type: bug Something isn't working label Aug 24, 2023
@MikeGoldsmith MikeGoldsmith self-assigned this Aug 24, 2023
@MikeGoldsmith MikeGoldsmith requested a review from a team August 24, 2023 11:20
@JamieDanielson JamieDanielson merged commit bbf966e into main Aug 24, 2023
4 checks passed
@JamieDanielson JamieDanielson deleted the mike/matcher-map-deletions branch August 24, 2023 15:45
JamieDanielson added a commit that referenced this pull request Aug 24, 2023
## Which problem is this PR solving?

- Closes #118

Includes changelog entries for the following open PRs:
- #124
- #123 
- #103

## Short description of the changes
- Add changelog entry
- Update version in main.go

Co-authored-by: Jamie Danielson <jamieedanielson@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants