From f009e1d583cb7184b7a31528df94a761111ce602 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 26 Sep 2023 22:20:46 +1000 Subject: [PATCH] gorond --- fs/file_handle.go | 2 +- storage/sqlite/sqlite-storage_test.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/file_handle.go b/fs/file_handle.go index 7a0c9a1e..ce5ded0b 100644 --- a/fs/file_handle.go +++ b/fs/file_handle.go @@ -56,7 +56,7 @@ func (me fileHandle) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse n, readErr = io.ReadFull(r, resp.Data) if readErr == io.ErrUnexpectedEOF { readErr = nil - } + } } else { n, readErr = r.Read(resp.Data) if readErr == io.EOF { diff --git a/storage/sqlite/sqlite-storage_test.go b/storage/sqlite/sqlite-storage_test.go index 00ab449b..a566322d 100644 --- a/storage/sqlite/sqlite-storage_test.go +++ b/storage/sqlite/sqlite-storage_test.go @@ -6,12 +6,13 @@ package sqliteStorage import ( "errors" "fmt" + "path/filepath" + "testing" + _ "github.com/anacrolix/envpprof" "github.com/anacrolix/squirrel" "github.com/dustin/go-humanize" qt "github.com/frankban/quicktest" - "path/filepath" - "testing" "github.com/anacrolix/torrent/storage" test_storage "github.com/anacrolix/torrent/storage/test" -- 2.44.0