Skip to content

Commit

Permalink
fix(volo): make sure hotrestart sockdir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Millione committed Nov 4, 2024
1 parent b46274f commit cdf62ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions volo/src/hotrestart/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cdf62ec

Please sign in to comment.