~blu/artemis

8f77171fd83c51f75a5fc7a4e2fb326da6686bc9 — Bryant Conquest 1 year, 5 months ago 6a7033f
dont use hash for file deaths
1 files changed, 1 insertions(+), 1 deletions(-)

M cache/cache.go
M cache/cache.go => cache/cache.go +1 -1
@@ 210,7 210,7 @@ func (c *Cache) writeAsset(hash string, data []byte) error {

func (c *Cache) removeAsset(a *CachedAsset) {
	path := filepath.Join(c.CacheDirectory, a.PathHash)
	fileDeaths.Add(a.PathHash, 1)
	fileDeaths.Add(a.Name, 1)

	if err := os.Remove(path); err != nil {
		c.Files.Delete(a.PathHash)