Closed g4s8 closed 3 years ago
For #9 - reproducing data races in licensedb.Detect(): added workflow for tests with -race flag enabled.
licensedb.Detect()
-race
Fixes #9 by wrapping problematic calls with sync.Mutex locks (it's prose chunks parser and rst markdown processor).
sync.Mutex
@bzz could you please check this PR and #9 issue? (lint and windows tests were failing before this PR).
Thank you for a fix and including a reproducible example in CI, @g4s8
For #9 - reproducing data races in
licensedb.Detect()
: added workflow for tests with-race
flag enabled.Fixes #9 by wrapping problematic calls with
sync.Mutex
locks (it's prose chunks parser and rst markdown processor).