Closed KonishchevDmitry closed 7 years ago
We have to check it for presence of hashStr again after waiting for the channel because there is a little chance that another goroutine will insert their channel with our hashStr between <-ch and r.itemChecksumsMu.Lock().
hashStr
<-ch
r.itemChecksumsMu.Lock()
We have to check it for presence of
hashStr
again after waiting for the channel because there is a little chance that another goroutine will insert their channel with ourhashStr
between<-ch
andr.itemChecksumsMu.Lock()
.