Nothing much

This commit is contained in:
Igor Katson 2023-11-25 19:20:47 +00:00
parent 3de67d0902
commit c6b4e78747
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 3 additions and 2 deletions

View file

@ -259,7 +259,7 @@ impl Session {
let session = session.clone();
spawn(
"session persistene",
error_span!("session persistence"),
error_span!("session_persistence"),
async move {
// Populate initial from the state filename
if let Err(e) = session.populate_from_stored().await {
@ -290,7 +290,7 @@ impl Session {
self.dht.as_ref()
}
async fn populate_from_stored(&self) -> anyhow::Result<()> {
async fn populate_from_stored(self: &Arc<Self>) -> anyhow::Result<()> {
let mut rdr = BufReader::new(
std::fs::File::open(&self.persistence_filename).with_context(|| {
format!("error opening session file {:?}", self.persistence_filename)

View file

@ -234,6 +234,7 @@ impl ManagedTorrent {
}
ManagedTorrentState::Initializing(init) => {
let init = init.clone();
drop(g);
let t = self.clone();
let span = self.info().span.clone();
spawn(