From 0cabcd50d5714b09bae02de6fc13012e8abeb483 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Thu, 10 Jul 2025 13:00:08 +0100 Subject: Change client ID to just id --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config.rs') 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); -- cgit v1.2.3-70-g09d2