MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / default_socket_path

Function default_socket_path

src/daemon/service.rs:242–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240}
241
242pub fn default_socket_path() -> Result<PathBuf> {
243 if let Some(path) = std::env::var_os(SOCKET_ENV).filter(|path| !path.is_empty()) {
244 return Ok(PathBuf::from(path));
245 }
246 Ok(tracedecay_data_dir()?.join("daemon.sock"))
247}
248
249pub fn socket_path_or_default(socket: Option<String>) -> Result<PathBuf> {
250 socket.map_or_else(default_socket_path, |path| Ok(PathBuf::from(path)))

Callers 4

serve_resolved_projectFunction · 0.85
notify_hook_event_innerFunction · 0.85
daemon_reachableFunction · 0.85

Calls 2

tracedecay_data_dirFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected