From b5f971961320939fe15e58d7c4a55d5049d17359 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Wed, 3 Mar 2021 09:14:22 +0300 Subject: [PATCH] revert --- server/torr/storage/torrstor/cache.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/torr/storage/torrstor/cache.go b/server/torr/storage/torrstor/cache.go index e92a413..d638705 100644 --- a/server/torr/storage/torrstor/cache.go +++ b/server/torr/storage/torrstor/cache.go @@ -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()