Closed andrewgleave closed 3 years ago
@andrewgleave I need to look at this again. I had thought that the data race was from actually having a shared urlStack in the first place.
Even with a mutex, won't it be possible for multiple concurrent feeds parsed to modify the state of urlStack?
Yeah. It is a superficial change, sorry.
Closing.
Fixes a race condition in urlStack by adding a sync.RWMutex