qbittorrent cleanup

This commit is contained in:
royalcat 2024-12-16 00:43:04 +03:00
parent 109bbb202d
commit ee2fc5ab9d
8 changed files with 459 additions and 12 deletions
cmd/tstor

View file

@ -4,7 +4,6 @@ import (
"context"
"errors"
"fmt"
"io/fs"
"log/slog"
"net"
@ -119,15 +118,15 @@ func run(configPath string) error {
return err
}
go func() {
log := log.WithComponent("background-scanner")
err := vfs.Walk(ctx, sfs, "/", func(path string, info fs.FileInfo, err error) error {
return nil
})
if err != nil {
log.Error(ctx, "error walking filesystem", rlog.Error(err))
}
}()
// go func() {
// log := log.WithComponent("background-scanner")
// err := vfs.Walk(ctx, sfs, "/", func(path string, info fs.FileInfo, err error) error {
// return nil
// })
// if err != nil {
// log.Error(ctx, "error walking filesystem", rlog.Error(err))
// }
// }()
if conf.Mounts.Fuse.Enabled {
mh := fuse.NewHandler(conf.Mounts.Fuse.AllowOther, conf.Mounts.Fuse.Path)