mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
@@ -20,7 +20,7 @@ use super::{
|
||||
use crate::{
|
||||
async_pipe::socket_stream_split,
|
||||
auth::Auth,
|
||||
constants::{APPLICATION_NAME, TUNNEL_NO_SERVICE_LOCK_NAME, TUNNEL_SERVICE_LOCK_NAME},
|
||||
constants::{APPLICATION_NAME, TUNNEL_CLI_LOCK_NAME, TUNNEL_SERVICE_LOCK_NAME},
|
||||
json_rpc::{new_json_rpc, start_json_rpc},
|
||||
log,
|
||||
singleton::connect_as_client,
|
||||
@@ -149,7 +149,7 @@ pub async fn service(
|
||||
manager.show_logs().await?;
|
||||
}
|
||||
TunnelServiceSubCommands::InternalRun => {
|
||||
let _lock = AppMutex::new(TUNNEL_SERVICE_LOCK_NAME);
|
||||
let _lock = TUNNEL_SERVICE_LOCK_NAME.map(AppMutex::new);
|
||||
manager
|
||||
.run(ctx.paths.clone(), TunnelServiceContainer::new(ctx.args))
|
||||
.await?;
|
||||
@@ -386,7 +386,7 @@ async fn serve_with_csa(
|
||||
let mut server =
|
||||
make_singleton_server(log_broadcast.clone(), log.clone(), server, shutdown.clone());
|
||||
let platform = spanf!(log, log.span("prereq"), PreReqChecker::new().verify())?;
|
||||
let _lock = AppMutex::new(TUNNEL_NO_SERVICE_LOCK_NAME).unwrap();
|
||||
let _lock = TUNNEL_CLI_LOCK_NAME.map(AppMutex::new);
|
||||
|
||||
let auth = Auth::new(&paths, log.clone());
|
||||
let mut dt = dev_tunnels::DevTunnels::new(&log, auth, &paths);
|
||||
|
||||
Reference in New Issue
Block a user