From: Matt Joiner Date: Tue, 26 Sep 2023 12:20:46 +0000 (+1000) Subject: gorond X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f009e1d583cb7184b7a31528df94a761111ce602;p=btrtrc.git gorond --- 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"