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

Merged
merged 8 commits into from
Jul 19, 2024
Merged

Init limits if nil #844

merged 8 commits into from
Jul 19, 2024

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 82.19%. Comparing base (ec57183) to head (152cb81).

Files Patch % Lines
transport.go 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #844      +/-   ##
==========================================
- Coverage   82.31%   82.19%   -0.12%     
==========================================
  Files          52       52              
  Lines        4626     4629       +3     
==========================================
- Hits         3808     3805       -3     
- Misses        666      670       +4     
- Partials      152      154       +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.

@cleptric cleptric enabled auto-merge (squash) July 19, 2024 14:39
@cleptric cleptric merged commit 9720871 into master Jul 19, 2024
20 of 21 checks passed
@cleptric cleptric deleted the nil-limit-fix branch July 19, 2024 14:44
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