Skip to content

fix(gin): data race warning for gin mode#1580

Merged
appleboy merged 8 commits into
gin-gonic:masterfrom
kplachkov:master
May 8, 2024
Merged

fix(gin): data race warning for gin mode#1580
appleboy merged 8 commits into
gin-gonic:masterfrom
kplachkov:master

Conversation

@kplachkov

Copy link
Copy Markdown
Contributor

Added atomic operations.
Fixes #1180

@codecov

codecov Bot commented Oct 1, 2018

Copy link
Copy Markdown

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

kplachkov commented May 7, 2019

Copy link
Copy Markdown
Contributor Author

It's updated

@thinkerou

Copy link
Copy Markdown
Member

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

@vuon9

vuon9 commented Feb 19, 2021

Copy link
Copy Markdown

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

@plo-

plo- commented Mar 6, 2023

Copy link
Copy Markdown

It's been a while, any news please?

@lhy1024

lhy1024 commented Nov 28, 2023

Copy link
Copy Markdown

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

appleboy
appleboy previously approved these changes Dec 7, 2023
@appleboy

appleboy commented Dec 7, 2023

Copy link
Copy Markdown
Member

@kplachkov Please help to resolve conflicts.

@appleboy appleboy added enhancement type/bug Found something you weren't expecting? Report it here! labels Dec 7, 2023
@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
appleboy added 2 commits May 8, 2024 09:03
- Remove unnecessary import of `flag`

Signed-off-by: Bo-Yi Wu <[email protected]>
- Update test assertions for mode setting in `mode_test.go`

Signed-off-by: Bo-Yi Wu <[email protected]>
@appleboy appleboy merged commit 7d14792 into gin-gonic:master May 8, 2024
@appleboy

appleboy commented May 8, 2024

Copy link
Copy Markdown
Member

@kplachkov Thanks.

@mymtw

mymtw commented May 8, 2024

Copy link
Copy Markdown

7 years ? ahahahahahh

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

Labels

enhancement type/bug Found something you weren't expecting? Report it here!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data race WARNING

7 participants