fix: protect the slice for append operation in multi-thread scenario#198
Conversation
|
Hi @mboersma , I think there's some issue on the circleci golang lint. and all the api version model: will leave it to you whether we need changes like that.. |
|
Agree. This is something we should take care of. The underlying issue could be hard to track and repro. |
|
/assign @mboersma |
|
Thanks @andyliuliming. We may have a fix for the goimports check in #204. I'll get that fixed and look at your PR today. |
|
@andyliuliming Could you rebase this PR? |
d8d1299 to
3dd8919
Compare
rebased, thanks :) |
tariq1890
left a comment
There was a problem hiding this comment.
Approved with minor comments.
|
@mboersma could you please help merge? Thanks. |
|
@andyliuliming can you address my last comment? I can merge after that |
Codecov Report
@@ Coverage Diff @@
## master #198 +/- ##
=========================================
+ Coverage 53.18% 53.2% +0.02%
=========================================
Files 95 95
Lines 14228 14235 +7
=========================================
+ Hits 7567 7574 +7
Misses 5995 5995
Partials 666 666 |
Codecov Report
@@ Coverage Diff @@
## master #198 +/- ##
=========================================
+ Coverage 53.18% 53.2% +0.02%
=========================================
Files 95 95
Lines 14228 14235 +7
=========================================
+ Hits 7567 7574 +7
Misses 5995 5995
Partials 666 666 |
a6b5ee8 to
8470a42
Compare
done, thanks very much :) |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyliuliming, tariq1890 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
for more details about the issue please take a look at this:
https://medium.com/@cep21/gos-append-is-not-always-thread-safe-a3034db7975