avoid map-lock delete

This commit is contained in:
JessonChan 2015-11-16 10:31:27 +08:00
parent bc2195b07f
commit d963bb79bd
1 changed files with 0 additions and 1 deletions

View File

@ -107,7 +107,6 @@ func openFile(filePath string, fi os.FileInfo, acceptEncoding string) (bool, str
}
}
mapLock.Lock()
delete(staticFileMap, mapKey)
defer mapLock.Unlock()
if mapFile, ok = staticFileMap[mapKey]; !ok {
file, err := os.Open(filePath)