It compiles now

This commit is contained in:
Igor Katson 2024-04-30 09:02:18 +01:00
parent 42bbf84ea5
commit 67c22c9313
4 changed files with 22 additions and 8 deletions

View file

@ -107,7 +107,7 @@ pub struct ManagedTorrentInfo {
pub struct ManagedTorrent {
pub info: Arc<ManagedTorrentInfo>,
storage_factory: Box<dyn StorageFactory>,
pub(crate) storage_factory: Box<dyn StorageFactory>,
locked: RwLock<ManagedTorrentLocked>,
}
@ -268,7 +268,7 @@ impl ManagedTorrent {
error_span!(parent: span.clone(), "initialize_and_start"),
token.clone(),
async move {
match init.check(&*self.storage_factory).await {
match init.check(&*t.storage_factory).await {
Ok(paused) => {
let mut g = t.locked.write();
if let ManagedTorrentState::Initializing(_) = &g.state {