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 #439

Closed
wants to merge 1 commit into from

Conversation

jaystenmark
Copy link
Contributor

Description

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.

Reference issue

Fixes #438

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 1 line in your changes missing coverage. Please review.

Project coverage is 66.14%. Comparing base (31282d5) to head (8389183).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
internal/client/udp_conn.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #439      +/-   ##
==========================================
- Coverage   66.37%   66.14%   -0.23%     
==========================================
  Files          43       43              
  Lines        3084     3084              
==========================================
- Hits         2047     2040       -7     
- Misses        871      877       +6     
- Partials      166      167       +1     
Flag Coverage Δ
go 66.14% <0.00%> (-0.23%) ⬇️
wasm 26.58% <0.00%> (ø)

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
Copy link
Member

I am going to re-open these PRs. CI was broken, and will be working on new PR.

sorry about that!

@Sean-Der Sean-Der closed this Feb 14, 2025
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.

Data Race in internal/client/udp_conn.go
2 participants