fix clippy issues
This commit is contained in:
parent
cee8d693da
commit
b8932f16b0
1 changed files with 2 additions and 2 deletions
|
|
@ -677,7 +677,7 @@ async fn run_monitoring_task(
|
||||||
.as_secs() as i64,
|
.as_secs() as i64,
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Err(_) = check_tx.send(check) {
|
if check_tx.send(check).is_err() {
|
||||||
crate::log_warn!(
|
crate::log_warn!(
|
||||||
"Monitoring task for device {}: channel closed, stopping task (connection may have dropped)",
|
"Monitoring task for device {}: channel closed, stopping task (connection may have dropped)",
|
||||||
device_id
|
device_id
|
||||||
|
|
@ -701,7 +701,7 @@ async fn run_monitoring_task(
|
||||||
.as_secs() as i64,
|
.as_secs() as i64,
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Err(_) = check_tx.send(check) {
|
if check_tx.send(check).is_err() {
|
||||||
crate::log_warn!(
|
crate::log_warn!(
|
||||||
"Monitoring task for device {}: channel closed, stopping task (connection may have dropped)",
|
"Monitoring task for device {}: channel closed, stopping task (connection may have dropped)",
|
||||||
device_id
|
device_id
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue