re-ordering

This commit is contained in:
chrislu 2023-08-16 23:54:23 -07:00
parent 3852307e94
commit f5c4b642bb

View file

@ -106,8 +106,8 @@ func NewSeaweedFileSystem(option *Option) *WFS {
}) })
grace.OnInterrupt(func() { grace.OnInterrupt(func() {
wfs.metaCache.Shutdown() wfs.metaCache.Shutdown()
os.RemoveAll(option.getUniqueCacheDirForRead())
os.RemoveAll(option.getUniqueCacheDirForWrite()) os.RemoveAll(option.getUniqueCacheDirForWrite())
os.RemoveAll(option.getUniqueCacheDirForRead())
}) })
if wfs.option.ConcurrentWriters > 0 { if wfs.option.ConcurrentWriters > 0 {