Renames
This commit is contained in:
parent
b4512e4809
commit
451debedbb
19 changed files with 127 additions and 114 deletions
|
|
@ -20,7 +20,7 @@ struct CustomStorage {
|
|||
impl StorageFactory for CustomStorageFactory {
|
||||
type Storage = CustomStorage;
|
||||
|
||||
fn create(&self, _info: &librqbit::ManagedTorrentInfo) -> anyhow::Result<Self::Storage> {
|
||||
fn create(&self, _info: &librqbit::ManagedTorrentShared) -> anyhow::Result<Self::Storage> {
|
||||
Ok(CustomStorage::default())
|
||||
}
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ impl TorrentStorage for CustomStorage {
|
|||
anyhow::bail!("not implemented")
|
||||
}
|
||||
|
||||
fn init(&mut self, _meta: &librqbit::ManagedTorrentInfo) -> anyhow::Result<()> {
|
||||
fn init(&mut self, _meta: &librqbit::ManagedTorrentShared) -> anyhow::Result<()> {
|
||||
anyhow::bail!("not implemented")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ async fn main() -> Result<(), anyhow::Error> {
|
|||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
info!("Details: {:?}", &handle.info().info);
|
||||
info!("Details: {:?}", &handle.shared().info);
|
||||
|
||||
// Print stats periodically.
|
||||
tokio::spawn({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue