Don't create IPC dir on windows
This commit is contained in:
parent
44511f9254
commit
4b56f2530d
@ -304,9 +304,11 @@ pub fn new_ipc<D: rpc_apis::Dependencies>(
|
|||||||
let handler = setup_apis(conf.apis, dependencies);
|
let handler = setup_apis(conf.apis, dependencies);
|
||||||
let remote = dependencies.remote.clone();
|
let remote = dependencies.remote.clone();
|
||||||
let path = PathBuf::from(&conf.socket_addr);
|
let path = PathBuf::from(&conf.socket_addr);
|
||||||
if let Some(dir) = path.parent() {
|
if !cfg!(windows) {
|
||||||
::std::fs::create_dir_all(&dir)
|
if let Some(dir) = path.parent() {
|
||||||
.map_err(|err| format!("Unable to create IPC directory at {}: {}", dir.display(), err))?;
|
::std::fs::create_dir_all(&dir)
|
||||||
|
.map_err(|err| format!("Unable to create IPC directory at {}: {}", dir.display(), err))?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
match rpc::start_ipc(&conf.socket_addr, handler, remote, rpc::RpcExtractor) {
|
match rpc::start_ipc(&conf.socket_addr, handler, remote, rpc::RpcExtractor) {
|
||||||
|
Loading…
Reference in New Issue
Block a user