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(gin): data race warning for gin mode #1580

Merged
merged 8 commits into from
May 8, 2024
Merged

Conversation

kplachkov
Copy link
Contributor

Added atomic operations.
Fixes #1180

@codecov
Copy link

codecov bot commented Oct 1, 2018

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.18%. Comparing base (3dc1cd6) to head (3bd58a8).
Report is 46 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1580      +/-   ##
==========================================
- Coverage   99.21%   99.18%   -0.03%     
==========================================
  Files          42       43       +1     
  Lines        3182     2714     -468     
==========================================
- Hits         3157     2692     -465     
+ Misses         17       12       -5     
- Partials        8       10       +2     
Flag Coverage Δ
?
-tags "sonic avx" 99.18% <100.00%> (?)
-tags go_json 99.18% <100.00%> (?)
-tags nomsgpack 99.17% <100.00%> (?)
go-1.18 99.11% <100.00%> (-0.01%) ⬇️
go-1.19 99.18% <100.00%> (-0.03%) ⬇️
go-1.20 99.18% <100.00%> (-0.03%) ⬇️
go-1.21 99.18% <100.00%> (-0.03%) ⬇️
go-1.22 99.18% <100.00%> (?)
macos-latest 99.18% <100.00%> (-0.03%) ⬇️
ubuntu-latest 99.18% <100.00%> (-0.03%) ⬇️

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.

@thinkerou thinkerou added this to the 1.x milestone Mar 1, 2019
@kplachkov
Copy link
Contributor Author

kplachkov commented May 7, 2019

It's updated

@thinkerou
Copy link
Member

@kplachkov can you add some test case according #1180 (comment) thanks!

@vuon9
Copy link

vuon9 commented Feb 19, 2021

May I ask about the reason this PR still cannot be merged? Thanks!

@plo-
Copy link

plo- commented Mar 6, 2023

It's been a while, any news please?

@lhy1024
Copy link

lhy1024 commented Nov 28, 2023

I also meet the same problem, when will it be merged?

appleboy
appleboy previously approved these changes Dec 7, 2023
@appleboy
Copy link
Member

appleboy commented Dec 7, 2023

@kplachkov Please help to resolve conflicts.

@appleboy appleboy modified the milestones: v1.x, v1.10 Dec 7, 2023
@appleboy appleboy changed the title fix: data race warning fix(ginMode): data race warning Dec 7, 2023
@appleboy appleboy modified the milestones: v1.10, v1.11 Mar 14, 2024
@appleboy appleboy changed the title fix(ginMode): data race warning fix(gin): data race warning for gin mode May 8, 2024
- Remove unnecessary import of `flag`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
- Update test assertions for mode setting in `mode_test.go`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
@appleboy appleboy merged commit 7d14792 into gin-gonic:master May 8, 2024
54 of 55 checks passed
@appleboy
Copy link
Member

appleboy commented May 8, 2024

@kplachkov Thanks.

@mymtw
Copy link

mymtw commented May 8, 2024

7 years ? ahahahahahh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data race WARNING
7 participants