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]]
|
||||
name = "tesla-charge-controller"
|
||||
version = "0.2.2"
|
||||
version = "0.2.3-prerelease"
|
||||
dependencies = [
|
||||
"async-channel",
|
||||
"chrono",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "tesla-charge-controller"
|
||||
version = "0.2.2"
|
||||
version = "0.2.3-prerelease"
|
||||
edition = "2021"
|
||||
license = "MITNFA"
|
||||
description = "Controls Tesla charge rate based on solar charge data"
|
||||
|
|
|
@ -80,7 +80,7 @@ async fn main() {
|
|||
_ = interval.tick() => pli.refresh(),
|
||||
message = pli_receiver.recv() => match 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,
|
||||
message = api_receiver.recv() => match message {
|
||||
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