Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
pub 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_server
Function · 0.85
command_server_generate_access
Function · 0.85
gather_configuration
Function · 0.85
try_connect_to_server
Function · 0.85
start
Method · 0.85
start
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected