FedP2P/storage
Colin Marc 60fd7581e7
Remove unecessary completion "set" (#812)
If the file has never been downloaded, complete will naturally be false. It's
not necessary to then set it false again unless it was actually claimed to be
true in the first place.

In my tests, using the boltdb completion thingy with fsync turned *on*, this
reduced the cold start for big buck bunny from multiple seconds to just a few
ms.
2023-02-13 14:26:03 +11:00
..
disabled Change torrent capacity to not return a pointer 2021-09-15 23:33:17 +10:00
sqlite Rearrange transfer tests so build directives are applied by the right packages 2022-03-17 16:08:00 +11:00
test gorond ./... 2022-11-15 23:31:27 +11:00
bolt-piece-completion.go gofumpt 2021-11-08 14:47:01 +11:00
bolt-piece-completion_test.go test: use `T.TempDir` to create temporary test directory (#718) 2022-02-02 18:26:46 +11:00
bolt-piece.go gofumpt 2021-11-08 14:47:01 +11:00
bolt-piece_test.go Rearrange transfer tests so build directives are applied by the right packages 2022-03-17 16:08:00 +11:00
bolt.go gofumpt 2021-11-08 14:47:01 +11:00
default-dir-piece-completion-boltdb.go Fix 386 cross compile and wasm build for crawshaw 2022-03-15 14:37:52 +11:00
default-dir-piece-completion-other.go Fix 386 cross compile and wasm build for crawshaw 2022-03-15 14:37:52 +11:00
doc.go storage: Add package doc 2017-03-18 13:03:02 +11:00
file-deprecated.go Add "no name" handling and storage.NewFileOpts 2021-09-02 10:22:32 +10:00
file-misc.go Big rename of files and types in storage 2021-05-05 12:05:02 +10:00
file-misc_test.go Big rename of files and types in storage 2021-05-05 12:05:02 +10:00
file-paths.go Add "no name" handling and storage.NewFileOpts 2021-09-02 10:22:32 +10:00
file-piece.go Remove unecessary completion "set" (#812) 2023-02-13 14:26:03 +11:00
file.go gorond ./... 2022-11-15 23:31:27 +11:00
file_test.go test: use `T.TempDir` to create temporary test directory (#718) 2022-02-02 18:26:46 +11:00
interface.go New go fmt on doc comments 2022-12-07 10:44:05 +11:00
issue95_test.go test: use `T.TempDir` to create temporary test directory (#718) 2022-02-02 18:26:46 +11:00
issue96_test.go test: use `T.TempDir` to create temporary test directory (#718) 2022-02-02 18:26:46 +11:00
map-piece-completion.go Add generics TODO 2021-09-02 10:22:32 +10:00
mark-complete_test.go Rework lots of option handling 2021-05-05 21:36:36 +10:00
mmap.go Do torrent storage flush on piece completion (#755) 2022-07-07 15:46:27 +10:00
piece-completion.go Default to sqlite piece completion for dir if cgo enabled 2021-05-14 15:51:26 +10:00
piece-resource.go Rework storage.TorrentImpl to support shared capacity key 2021-06-07 13:01:39 +10:00
safe-path.go Fix error handling for bad torrent adds with safe file handling 2020-10-15 16:03:43 +11:00
safe-path_test.go gofumpt 2021-11-08 14:47:01 +11:00
sqlite-piece-completion.go gorond ./... 2022-11-15 23:31:27 +11:00
storage_test.go Add bolt piece completion DB 2016-10-25 19:07:26 +11:00
wrappers.go gorond ./... 2022-11-15 23:31:27 +11:00