chore(fs): remove prints
This commit is contained in:
parent
1b0bf9c5fd
commit
5ad0a073ce
1 changed files with 0 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue