Move to storage folder

This commit is contained in:
Igor Katson 2024-04-30 09:09:17 +01:00
parent c6a8761a8d
commit dc137c075f
6 changed files with 272 additions and 10 deletions

View file

@ -12,7 +12,9 @@ async fn main() -> anyhow::Result<()> {
.nth(1)
.expect("first argument should be a magnet link");
let magnet = Magnet::parse(&magnet).unwrap();
let info_hash = magnet.as_id20().context("Supplied magnet link didn't contain a BTv1 infohash")?;
let info_hash = magnet
.as_id20()
.context("Supplied magnet link didn't contain a BTv1 infohash")?;
tracing_subscriber::fmt::init();