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

Init limits if nil #844

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Init limits if nil #844

wants to merge 6 commits into from

Conversation

ribice
Copy link
Collaborator

@ribice ribice commented Jun 20, 2024

Resolves #841.

Since limits.map.Merge is a value receiver, not a pointer receiver, it is not possible to handle this and init a new map within the Merge itself.

@ribice ribice requested a review from cleptric June 20, 2024 06:17
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 81.95%. Comparing base (77f9517) to head (36ce3fd).

Files Patch % Lines
transport.go 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #844      +/-   ##
==========================================
- Coverage   82.05%   81.95%   -0.10%     
==========================================
  Files          51       51              
  Lines        4507     4510       +3     
==========================================
- Hits         3698     3696       -2     
- Misses        661      664       +3     
- Partials      148      150       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@cleptric cleptric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible, as test would be nice.

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.

panic: assignment to entry in nil map when using non-default Transports
2 participants