adds frontend history
This commit is contained in:
@@ -7,11 +7,11 @@ pub mod core {
|
||||
tonic::include_proto!("core");
|
||||
}
|
||||
|
||||
use crate::telemetry::history::TelemetryHistoryService;
|
||||
use crate::telemetry::management_service::TelemetryManagementService;
|
||||
use std::error::Error;
|
||||
use std::sync::Arc;
|
||||
use tokio_util::sync::CancellationToken;
|
||||
use crate::telemetry::history::TelemetryHistoryService;
|
||||
|
||||
pub async fn setup() -> Result<(), Box<dyn Error>> {
|
||||
let cancellation_token = CancellationToken::new();
|
||||
@@ -24,7 +24,7 @@ pub async fn setup() -> Result<(), Box<dyn Error>> {
|
||||
}
|
||||
|
||||
let tlm = Arc::new(TelemetryManagementService::new(
|
||||
TelemetryHistoryService::new()
|
||||
TelemetryHistoryService::new(),
|
||||
));
|
||||
|
||||
let grpc_server = grpc::setup(cancellation_token.clone(), tlm.clone())?;
|
||||
|
||||
Reference in New Issue
Block a user