gTickCheckerRust 0.1.2

TickChecker is a simple management tool for server cloud computing in any field to check whether the target service has survived.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use tokio::runtime::{Runtime,Builder};
use lazy_static::*;
use num_cpus;

lazy_static! {
    pub static ref RT:Runtime = Builder::new_multi_thread()
        .worker_threads(num_cpus::get()).build().unwrap();
}

pub fn wait_forever() {
    loop {
        std::thread::sleep(std::time::Duration::from_secs(1));
    }
}