From 5ad0a073ce5c68ceee70b67efd227a5c0e12313c Mon Sep 17 00:00:00 2001 From: hexxa Date: Thu, 16 Sep 2021 21:15:41 +0800 Subject: [PATCH] chore(fs): remove prints --- src/fs/local/fs.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/fs/local/fs.go b/src/fs/local/fs.go index 3be9a76..819aed9 100644 --- a/src/fs/local/fs.go +++ b/src/fs/local/fs.go @@ -101,7 +101,6 @@ func (fs *LocalFS) closeOpens(iterateAll, forced bool, exclude map[string]bool) batch-- if forced || info.lastAccess.Add(fs.readerTTL).Before(time.Now()) { - fmt.Println("closing reader2", id, forced) var err error if err = info.fd.Sync(); err != nil { return closed, err @@ -383,7 +382,6 @@ func (fs *LocalFS) GetFileReader(path string) (fs.ReadCloseSeeker, uint64, error lastAccess: time.Now(), } - fmt.Println("new reader", id, path, fs.readers) return fd, id, nil } @@ -391,8 +389,6 @@ func (fs *LocalFS) CloseReader(id string) error { fs.opensMtx.Lock() defer fs.opensMtx.Unlock() - fmt.Println("close reader", id) - info, ok := fs.readers[id] if !ok { return fmt.Errorf("reader not found: %s %v", id, fs.readers)