~starkingdoms/starkingdoms

996a81fb17e5dc9498b85cd90ae8ccbfa13c201c — core 2 years ago 760e6e6
API formatting
1 files changed, 5 insertions(+), 2 deletions(-)

M starkingdoms-api/src/main.rs
M starkingdoms-api/src/main.rs => starkingdoms-api/src/main.rs +5 -2
@@ 8,7 8,7 @@ use hmac::digest::KeyInit;
use hmac::Hmac;
use log::{error, info};
use mongodb::options::{ClientOptions, ResolverConfig};
use mongodb::{Client};
use mongodb::Client;
use sha2::Sha256;
use std::fs;
use std::path::PathBuf;


@@ 45,7 45,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

    let config_pathbuf = PathBuf::from(config_path);

    info!("StarKingdoms API v{} starting up", env!("CARGO_PKG_VERSION"));
    info!(
        "StarKingdoms API v{} starting up",
        env!("CARGO_PKG_VERSION")
    );
    info!("Loading config from {}", config_pathbuf.display());

    let config_str = match fs::read_to_string(&config_pathbuf) {