slim and full periphery. updated stats type

This commit is contained in:
beckerinj
2022-12-12 00:46:27 -05:00
parent b98f4a6ec1
commit e5dec41b49
20 changed files with 220 additions and 105 deletions

View File

@@ -57,7 +57,7 @@ pub fn gen_core_config(sub_matches: &ArgMatches) {
write_to_toml(&path, config);
println!("\ncore config has been generated ✅");
println!("\ncore config has been generated ✅\n");
}
pub fn start_mongo(sub_matches: &ArgMatches) {
@@ -79,7 +79,7 @@ pub fn start_mongo(sub_matches: &ArgMatches) {
// start mongo here
println!("\nmonitor mongo has been started up ✅")
println!("\nmonitor mongo has been started up ✅\n")
}
pub fn start_core(sub_matches: &ArgMatches) {
@@ -91,7 +91,7 @@ pub fn start_core(sub_matches: &ArgMatches) {
// start core here
println!("\nmonitor core has been started up ✅");
println!("\nmonitor core has been started up ✅\n");
}
pub fn gen_periphery_config(sub_matches: &ArgMatches) {
@@ -117,7 +117,7 @@ pub fn gen_periphery_config(sub_matches: &ArgMatches) {
write_to_toml(&path, config);
println!("\nperiphery config has been generated ✅");
println!("\nperiphery config has been generated ✅\n");
}
pub fn start_periphery(sub_matches: &ArgMatches) {
@@ -134,7 +134,7 @@ pub fn start_periphery(sub_matches: &ArgMatches) {
// start periphery here
println!("\nmonitor periphery has been started up ✅");
println!("\nmonitor periphery has been started up ✅\n");
}
fn write_to_toml(path: &str, toml: impl Serialize) {
@@ -142,7 +142,7 @@ fn write_to_toml(path: &str, toml: impl Serialize) {
path,
toml::to_string(&toml).expect("failed to parse config into toml"),
)
.expect("failed to write toml to file");
.expect("failed to write toml to file");
}
fn generate_secret(length: usize) -> String {