rework exclude repository
This commit is contained in:
parent
0332206560
commit
cd6cf8dd74
4 changed files with 22 additions and 29 deletions
cmd/tstor
|
@ -73,10 +73,7 @@ func run(configPath string) error {
|
|||
log.Err(err).Msg("set priority failed")
|
||||
}
|
||||
|
||||
if err := os.MkdirAll(filepath.Join(conf.TorrentClient.MetadataFolder, "meta"), 0744); err != nil {
|
||||
return fmt.Errorf("error creating metadata folder: %w", err)
|
||||
}
|
||||
rep, err := repository.NewTorrentMetaRepository(filepath.Join(conf.TorrentClient.MetadataFolder, "meta"))
|
||||
rep, err := repository.NewTorrentMetaRepository(conf.TorrentClient.MetadataFolder)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue