This commit is contained in:
YouROK
2021-03-03 09:14:22 +03:00
parent 6902c64fb0
commit b5f9719613

View File

@@ -253,11 +253,10 @@ func (c *Cache) CloseReader(r *Reader) {
r.Close()
delete(r.cache.readers, r)
r.cache.muReaders.Unlock()
// go c.updatePriority()
go c.updatePriority()
}
func (c *Cache) updatePriority() {
return
time.Sleep(time.Second)
ranges := make([]Range, 0)
c.muReaders.Lock()