POC in Rust get db from websocket

This commit is contained in:
Martin Quarda
2025-05-10 19:59:24 +02:00
parent 2a89528b8f
commit d7c5f0f048
5 changed files with 70 additions and 11 deletions

View File

@@ -12,8 +12,7 @@ pub struct Config {
pub SAVING_INTERVAL: u64,
pub STATION_ID: usize,
pub HOST: String,
pub LOGIN: String,
pub PASSWORD: String,
pub WSS_HOST: String,
}
fn read_config_from_file<P: AsRef<Path>>(path: P) -> Result<Config, Box<dyn Error>> {