Add function comment to lockDownload.

pull/11223/head
Andriy Dzikh 2021-05-07 11:28:00 -07:00
parent 248d030d73
commit 118eae4311
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ func withinUnitTest() bool {
return flag.Lookup("test.v") != nil || strings.HasSuffix(os.Args[0], "test")
}
// lockDownload locks `file` if possible and returns a releaser that must be called to release the lock.
func lockDownload(file string) (mutex.Releaser, error) {
type retPair struct {
mutex.Releaser