mt_scope 0.9.0

Node crash monitoring for Minot — detects disconnected nodes and fires a Torpedo shutdown.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use mt_scope::{Scope, ScopeConfig};

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    println!(
        "{:#?}",
        Scope::create(ScopeConfig {
            name: "quickscope".into(),
            mode: Default::default()
        })
        .await
    );
    Ok(())
}