remove priority for all files
Some checks failed
docker / build-docker (linux/amd64) (push) Successful in 1m35s
docker / build-docker (linux/arm64) (push) Has been cancelled

This commit is contained in:
royalcat 2024-06-17 01:13:59 +03:00
parent f0b6b517d5
commit 7651c22dbc

View file

@ -112,7 +112,6 @@ func (fs *TorrentFS) files(ctx context.Context) (map[string]vfs.File, error) {
fs.filesCache = make(map[string]vfs.File) fs.filesCache = make(map[string]vfs.File)
for _, file := range files { for _, file := range files {
file.SetPriority(torrent.PiecePriorityNormal)
p := vfs.AbsPath(file.Path()) p := vfs.AbsPath(file.Path())
tf, err := openTorrentFile(ctx, path.Base(p), file) tf, err := openTorrentFile(ctx, path.Base(p), file)
if err != nil { if err != nil {