Revert "Start work on handling TLS for the RPC endpoint"
This reverts commit 193c704875.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user