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 data race in WriteTo #443

Merged
merged 1 commit into from
Feb 14, 2025
Merged

Fix data race in WriteTo #443

merged 1 commit into from
Feb 14, 2025

Conversation

Sean-Der
Copy link
Member

There is no harm in shadowing err in the goroutine since we do not need it outside of the routine.

I also discovered data races in tcp_conn_test.go while fixing this bug and have included them in this PR.

There is no harm in shadowing `err` in the goroutine since we do not
need it outside of the routine.

I also discovered data races in tcp_conn_test.go while fixing this bug
and have included them in this PR.
Copy link

codecov bot commented Feb 14, 2025

Codecov Report

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

Project coverage is 66.16%. Comparing base (31282d5) to head (4941636).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
internal/client/udp_conn.go 0.00% 2 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #443      +/-   ##
==========================================
- Coverage   66.37%   66.16%   -0.21%     
==========================================
  Files          43       43              
  Lines        3084     3083       -1     
==========================================
- Hits         2047     2040       -7     
- Misses        871      876       +5     
- Partials      166      167       +1     
Flag Coverage Δ
go 66.16% <0.00%> (-0.21%) ⬇️
wasm 26.59% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@Sean-Der Sean-Der merged commit 02831c0 into master Feb 14, 2025
14 of 15 checks passed
@Sean-Der Sean-Der deleted the fix-udpconn-race branch February 14, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants