fn spawn_renewal(
store: Arc<LeaseStore>,
lease: Lease,
agent: String,
lost: Arc<LostReason>,
stopped: Arc<AtomicBool>,
last_ok_ms: Arc<AtomicI64>,
on_lost: impl Fn(String) + Send + Sync + 'static,
)fn spawn_renewal(
store: Arc<LeaseStore>,
lease: Lease,
agent: String,
lost: Arc<LostReason>,
stopped: Arc<AtomicBool>,
last_ok_ms: Arc<AtomicI64>,
on_lost: impl Fn(String) + Send + Sync + 'static,
)