Update docs, cleanup for 4.0.0 release

This commit is contained in:
Igor Katson 2023-12-03 12:14:50 +00:00
parent 3160f06f65
commit 006d83d6a7
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
29 changed files with 206 additions and 116 deletions

View file

@ -6,7 +6,7 @@
use std::time::Duration;
use anyhow::Context;
use librqbit::session::{AddTorrent, AddTorrentOptions, AddTorrentResponse, Session};
use librqbit::{AddTorrent, AddTorrentOptions, AddTorrentResponse, Session};
use tracing::info;
// This is ubuntu-21.04-live-server-amd64.iso.torrent
@ -27,7 +27,7 @@ async fn main() -> Result<(), anyhow::Error> {
.expect("the first argument should be the output directory");
// Create the session
let session = Session::new(output_dir.into(), Default::default())
let session = Session::new(output_dir.into())
.await
.context("error creating session")?;