Skip to content

Commit 8a55ab6

Browse files
remove unnecessary tmpdir handling
1 parent c7dab56 commit 8a55ab6

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

crates/icp/src/network/managed/docker.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,7 @@ pub async fn spawn_docker_launcher(
5353
let wsl2_distro = std::env::var("ICP_CLI_DOCKER_WSL2_DISTRO").ok();
5454
let wsl2_distro = wsl2_distro.as_deref();
5555
let wsl2_convert = cfg!(windows) && wsl2_distro.is_some();
56-
let host_status_tmpdir = if wsl2_convert {
57-
let host_tmp = wslpath2::convert("/tmp", wsl2_distro, Conversion::WslToWindows, true)
58-
.map_err(|e| {
59-
WslPathConvertSnafu {
60-
msg: e.to_string(),
61-
path: "/tmp",
62-
}
63-
.build()
64-
})?;
65-
Utf8TempDir::new_in(&host_tmp).context(WslCreateTmpDirSnafu)?
66-
} else {
67-
Utf8TempDir::new().context(CreateStatusDirSnafu)?
68-
};
56+
let host_status_tmpdir = Utf8TempDir::new().context(CreateStatusDirSnafu)?;
6957
let host_status_dir = host_status_tmpdir.path();
7058
let host_status_dir_param = convert_path(wsl2_convert, wsl2_distro, host_status_tmpdir.path())?;
7159
let socket = match std::env::var("DOCKER_HOST").ok() {

0 commit comments

Comments
 (0)