Skip to main content

serving

Function serving 

Source
pub fn serving(repo: &Repository) -> Option<String>
Expand description

Which server is serving this repository right now, if any.

Read-only, unlike elect: it takes no lease, creates no file and waits for nobody, so a command that only wants to ask the running server something cannot accidentally become it. None means no lease, no URL in it, or a lease whose server does not answer for this root.