From cdf62ec5f68adc85e40a808d108fb49766674b52 Mon Sep 17 00:00:00 2001 From: Millione Date: Mon, 4 Nov 2024 11:12:24 +0800 Subject: [PATCH] fix(volo): make sure hotrestart sockdir exists --- volo/src/hotrestart/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/volo/src/hotrestart/mod.rs b/volo/src/hotrestart/mod.rs index 869c55c6..8cd0f4ff 100644 --- a/volo/src/hotrestart/mod.rs +++ b/volo/src/hotrestart/mod.rs @@ -128,6 +128,9 @@ impl HotRestart { if *state != HotRestartState::Uninitalized { return Ok(()); } + if !sock_dir_path.exists() { + std::fs::create_dir_all(sock_dir_path)?; + } self.listener_num .store(server_listener_num, Ordering::Relaxed); self.parent_sock_path