Move creation of the diag device into read thread

Moved the creation of the DiagDevice into the diag read task thread.
This commit is contained in:
Jack Lund
2026-04-26 11:14:33 -05:00
committed by Markus Unterwaditzer
parent 258fdd9d21
commit 38b1dd3de2
3 changed files with 17 additions and 15 deletions
-3
View File
@@ -1,4 +1,3 @@
use rayhunter::diag_device::DiagDeviceError;
use thiserror::Error;
use crate::qmdl_store::RecordingStoreError;
@@ -7,8 +6,6 @@ use crate::qmdl_store::RecordingStoreError;
pub enum RayhunterError {
#[error("Config file parsing error: {0}")]
ConfigFileParsingError(#[from] toml::de::Error),
#[error("Diag intialization error: {0}")]
DiagInitError(DiagDeviceError),
#[error("Tokio error: {0}")]
TokioError(#[from] tokio::io::Error),
#[error("QmdlStore error: {0}")]