Skip to main content

should_replace_daemon

Function should_replace_daemon 

Source
pub fn should_replace_daemon(
    daemon_version: &str,
    own_version: &str,
    source: ResolveSource,
) -> bool
Expand description

Whether a version mismatch should drain and respawn the daemon.

Only the CLI upgrading itself replaces a running daemon. SDK consumers that resolved a CLI via PATH/env must never kill a healthy daemon and must never respawn in a version-mismatch thrash loop.