pre bump + rx channel drop should be panic
This commit is contained in:
parent
89f6cd11c5
commit
66b15fc46e
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -2256,7 +2256,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tesla-charge-controller"
|
name = "tesla-charge-controller"
|
||||||
version = "0.2.2"
|
version = "0.2.3-prerelease"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-channel",
|
"async-channel",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "tesla-charge-controller"
|
name = "tesla-charge-controller"
|
||||||
version = "0.2.2"
|
version = "0.2.3-prerelease"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MITNFA"
|
license = "MITNFA"
|
||||||
description = "Controls Tesla charge rate based on solar charge data"
|
description = "Controls Tesla charge rate based on solar charge data"
|
||||||
|
|
|
@ -80,7 +80,7 @@ async fn main() {
|
||||||
_ = interval.tick() => pli.refresh(),
|
_ = interval.tick() => pli.refresh(),
|
||||||
message = pli_receiver.recv() => match message {
|
message = pli_receiver.recv() => match message {
|
||||||
Ok(message) => pli.process_request(message),
|
Ok(message) => pli.process_request(message),
|
||||||
Err(e) => error!("Error on PLI receive channel: {e:?}")
|
Err(e) => panic!("Error on PLI receive channel: {e:?}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,7 @@ async fn main() {
|
||||||
_ = interval.tick() => interface.refresh().await,
|
_ = interval.tick() => interface.refresh().await,
|
||||||
message = api_receiver.recv() => match message {
|
message = api_receiver.recv() => match message {
|
||||||
Ok(message) => interface.process_request(message).await,
|
Ok(message) => interface.process_request(message).await,
|
||||||
Err(e) => error!("Error on Tesla receive channel: {e:?}")
|
Err(e) => panic!("Error on Tesla receive channel: {e:?}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue