rename argument torrents_path to storage, infohash_source to infohash_file (reserve namespace for the URL sources)

This commit is contained in:
yggverse 2025-06-07 17:04:12 +03:00
parent 525a487806
commit 29816f80ef
3 changed files with 16 additions and 16 deletions

View file

@ -16,7 +16,7 @@ async fn main() -> anyhow::Result<()> {
let is_debug_e = argument.debug.contains("e");
// init shared members
let torrent_storage = if let Some(t) = argument.torrents_path {
let torrent_storage = if let Some(t) = argument.storage {
let s = database::torrent::Storage::init(&t, argument.clear)?;
if argument.clear && is_debug_i {
debug::info(String::from("Cleanup torrent storage"));
@ -59,7 +59,7 @@ async fn main() -> anyhow::Result<()> {
)
.await?;
// collect info-hashes from API
for source in &argument.infohash_source {
for source in &argument.infohash_file {
if is_debug_i {
debug::info(format!("Handle info-hash source `{source}`..."));
}