cakerabbit_core/
config.rs

1
2use lazy_static::*;
3use std::collections::HashMap;
4
5lazy_static! {
6  pub static ref CONFIG: HashMap<&'static str, &'static str> = {
7    let mut config = HashMap::new();
8    // todo: the service register normal duration time is one minute(60 sec),
9    // todo: so 5*40 check time will be OK, it more large than the 60, can cover the time
10    // todo: duration service stop and remove info from register center, when the service
11    // todo: start again, the service info is not in the register center, this make sure the
12    // todo: checker process will not consider the service is exist already and exit register.
13    config.insert("service_check_retries", "5");
14    config.insert("service_check_interval", "40");
15
16    config
17  };
18}
19
20
21