mirror of
https://codeberg.org/icewind/taspromto.git
synced 2026-06-03 08:34:21 +02:00
bumb dependencies
This commit is contained in:
parent
b88127828e
commit
bd955a62cc
3 changed files with 205 additions and 223 deletions
|
|
@ -3,6 +3,7 @@ use color_eyre::{eyre::WrapErr, Report, Result};
|
|||
use rumqttc::MqttOptions;
|
||||
use std::collections::BTreeMap;
|
||||
use std::str::FromStr;
|
||||
use std::time::Duration;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Config {
|
||||
|
|
@ -77,7 +78,7 @@ impl Config {
|
|||
if let Some(credentials) = self.mqtt_credentials.as_ref() {
|
||||
mqtt_options.set_credentials(&credentials.username, &credentials.password);
|
||||
}
|
||||
mqtt_options.set_keep_alive(5);
|
||||
mqtt_options.set_keep_alive(Duration::from_secs(5));
|
||||
Ok(mqtt_options)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue