Commit d963bb79 authored by JessonChan's avatar JessonChan

avoid map-lock delete

parent bc2195b0
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment