fs/file_handle.go | 2 +- storage/sqlite/sqlite-storage_test.go | 5 +++-- diff --git a/fs/file_handle.go b/fs/file_handle.go index 7a0c9a1eac435ed3410930762a2df5d763bf9253..ce5ded0b488205f54251e8631fbb72b0a6c9f1e2 100644 --- a/fs/file_handle.go +++ b/fs/file_handle.go @@ -56,7 +56,7 @@ // behaviour from before 2a7352a, which nobody reported problems with. 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 00ab449b92efda2696f0a6a57aec2ecd5439b80d..a566322d708b5d78075e983684f58d4f3d698ae1 100644 --- a/storage/sqlite/sqlite-storage_test.go +++ b/storage/sqlite/sqlite-storage_test.go @@ -6,12 +6,13 @@ 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"