Remove stray logging

This commit is contained in:
Antonio Scandurra
2021-09-23 18:26:42 +02:00
parent 8bfee93be4
commit 5b40dcaeed
2 changed files with 4 additions and 27 deletions
+4 -12
View File
@@ -42,7 +42,7 @@ use std::{
atomic::{AtomicUsize, Ordering::SeqCst},
Arc,
},
time::{Duration, Instant, SystemTime},
time::{Duration, SystemTime},
};
use zrpc::{PeerId, TypedEnvelope};
@@ -1072,14 +1072,9 @@ impl LocalWorktree {
};
let remote_id = share_request.worktree.as_ref().unwrap().id;
let t0 = Instant::now();
let share_response = rpc.request(share_request).await?;
log::info!(
"sharing worktree {:?} - took {:?}",
share_response,
t0.elapsed()
);
log::info!("sharing worktree {:?}", share_response);
let (snapshots_to_send_tx, snapshots_to_send_rx) =
smol::channel::unbounded::<Snapshot>();
@@ -1142,8 +1137,7 @@ impl LocalWorktree {
let snapshot = self.snapshot();
let root_name = self.root_name.clone();
cx.background().spawn(async move {
let t0 = Instant::now();
let result = remote_id.await.map(|id| {
remote_id.await.map(|id| {
let entries = snapshot
.entries_by_path
.cursor::<(), ()>()
@@ -1157,9 +1151,7 @@ impl LocalWorktree {
entries,
}),
}
});
eprintln!("computing share request: {:?}", t0.elapsed());
result
})
})
}
}