Skip to main content

run_upgrade

Function run_upgrade 

Source
pub async fn run_upgrade(
    current_version: String,
    force: bool,
    tx: UnboundedSender<UpgradeEvent>,
) -> Result<UpgradeSummary>
Expand description

Top-level upgrade driver.

current_version is what we’re running right now (e.g. "v4.19.0" — callers typically pass format!("v{}", env!("CARGO_PKG_VERSION"))). When force is false and the manifest version is <= current, this returns an error carrying ALREADY_LATEST so callers can distinguish “already up to date” from a real failure.