MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / get_hostname

Function get_hostname

crates/hyperqueue/src/common/utils/network.rs:1–7  ·  view source on GitHub ↗
(preferred: Option<String>)

Source from the content-addressed store, hash-verified

1pub fn get_hostname(preferred: Option<String>) -> String {
2 preferred.unwrap_or_else(|| {
3 gethostname::gethostname()
4 .into_string()
5 .expect("Invalid hostname")
6 })
7}

Callers 6

start_serverFunction · 0.85
gather_configurationFunction · 0.85
try_connect_to_serverFunction · 0.85
startMethod · 0.85
startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected