Closed filipochnik closed 6 years ago
I found this race condition when running my code using yamux with -race.
-race
Since the test suite fails when run with -race I don't think I can write a meaningful test here.
I think it is likely to be faster to use an atomic.Value here, since it is only being read in one place and written in another.
atomic.Value
Sure, I changed it to atomic.Value :)
Thanks!
I found this race condition when running my code using yamux with
-race
.Since the test suite fails when run with
-race
I don't think I can write a meaningful test here.