fs/torrentfs.go | 9 --------- diff --git a/fs/torrentfs.go b/fs/torrentfs.go index 3ebbbf756592146f5e383fe63a3ed645311b4b9e..47fd6109adba4207676d78d33ce138db6f56d487 100644 --- a/fs/torrentfs.go +++ b/fs/torrentfs.go @@ -7,7 +7,6 @@ "log" "os" "strings" "sync" - "time" "bazil.org/fuse" fusefs "bazil.org/fuse/fs" @@ -127,17 +126,9 @@ } func (fn fileNode) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error { torrentfsReadRequests.Add(1) - started := time.Now() if req.Dir { panic("read on directory") } - defer func() { - ms := time.Now().Sub(started).Nanoseconds() / 1000000 - if ms < 20 { - return - } - log.Printf("torrentfs read took %dms", ms) - }() size := req.Size fileLeft := int64(fn.size) - req.Offset if fileLeft < 0 {