Skip to main content

take_lease

Function take_lease 

Source
pub async fn take_lease(
    db: Database,
    period: Duration,
    role: &'static str,
    holder: String,
) -> Leadership
Expand description

Waits for the master’s lease (see Leadership::take) as holder (a new incarnation of the master of role: crate::node::new_master_id), logging once that it waits as a standby.