diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/config.rs b/src/config.rs index c110825..b04b72c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -3,7 +3,7 @@  use std::{      collections::HashMap, fmt, fs::File, io::Read, os::unix::fs::PermissionsExt, path::Path, -    process, time::Duration, +    time::Duration,  };  use anyhow::bail; @@ -280,7 +280,7 @@ pub struct Config {  impl Config {      pub fn mqtt_client(&self) -> (AsyncClient, EventLoop) { -        let client_id = format!("{}_{}", self.id, process::id()); +        let client_id = self.id.to_string();          let mut options = MqttOptions::new(client_id, &self.host, self.port);          if let Some(credentials) = &self.credentials {              options.set_credentials(&credentials.username, &credentials.password); | 
