mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
fix windows build issue
This commit is contained in:
@@ -112,7 +112,9 @@ async fn main_impl() -> Result<()> {
|
||||
let (send_task, recv_task) = if let Some(unix_socket_path) = unix_socket {
|
||||
#[cfg(not(target_family = "unix"))]
|
||||
{
|
||||
bail!("unix sockets are only supported on unix based operating systems");
|
||||
return Err(anyhow!(
|
||||
"unix sockets are only supported on unix based operating systems"
|
||||
));
|
||||
}
|
||||
#[cfg(target_family = "unix")]
|
||||
unix_socket_impl(unix_socket_path, state, main_cancel.clone()).await?
|
||||
|
||||
Reference in New Issue
Block a user