Revert "Start work on handling TLS for the RPC endpoint"

This reverts commit 193c704875.
This commit is contained in:
Antonio Scandurra
2021-07-07 15:19:00 +02:00
parent 193c704875
commit ee962eab9b
6 changed files with 21 additions and 114 deletions
+2 -5
View File
@@ -6,7 +6,6 @@ use crate::{
language::LanguageRegistry,
rpc,
settings::Settings,
util::SurfResultExt as _,
worktree::{File, Worktree},
AppState,
};
@@ -685,9 +684,7 @@ impl Workspace {
let platform = cx.platform();
let task = cx.spawn(|this, mut cx| async move {
rpc.log_in_and_connect(&cx)
.await
.context("failed to establish rpc connection")?;
rpc.log_in_and_connect(&cx).await?;
let share_task = this.update(&mut cx, |this, cx| {
let worktree = this.worktrees.iter().next()?;
@@ -708,7 +705,7 @@ impl Workspace {
cx.spawn(|_, _| async move {
if let Err(e) = task.await {
log::error!("sharing failed: {:?}", e);
log::error!("sharing failed: {}", e);
}
})
.detach();