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

go test -race检测到DATA RACE #653

Open
781778304 opened this issue Dec 12, 2023 · 0 comments
Open

go test -race检测到DATA RACE #653

781778304 opened this issue Dec 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@781778304
Copy link

What version of Loggie?

v0.0.0-20231110083826-ba7e228e204c

Expected Behavior

没有DATA RACE

Actual Behavior

StopWatchTask 里面针对watch.stopTime的访问是否要考虑加锁,我go test -race检测出并发访问问题了。handleWatchTaskEvent里面IsStop判断的时候有并发

Steps to Reproduce the Problem

go test -race

@781778304 781778304 added the bug Something isn't working label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant