From 06d665a6fc90d3cd9973f7fc169ad38caddf85cd Mon Sep 17 00:00:00 2001 From: DziyanaT Date: Thu, 31 Aug 2023 16:35:35 +0200 Subject: [PATCH] feat: save correct resource usage data to the db Signed-off-by: Mauran --- controller/src/main.rs | 2 +- controller/src/routes/instances.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/src/main.rs b/controller/src/main.rs index fdda314..875817e 100644 --- a/controller/src/main.rs +++ b/controller/src/main.rs @@ -4,8 +4,8 @@ mod routes; mod store; mod types; -use store::kv_manager::DB_STORE; use orka_proto::scheduler_controller::{self, WorkloadInstance}; +use store::kv_manager::DB_STORE; use store::kv_manager::{KeyValueBatch, DB_BATCH}; use tokio::sync::mpsc; use tokio_stream::wrappers::ReceiverStream; diff --git a/controller/src/routes/instances.rs b/controller/src/routes/instances.rs index 3992a2d..dcc8e40 100644 --- a/controller/src/routes/instances.rs +++ b/controller/src/routes/instances.rs @@ -7,7 +7,7 @@ use crate::types::instance_request::InstanceRequest; use crate::types::instance_status::InstanceStatus; use axum::extract::Path; use axum::Json; -use log::{trace, warn, error}; +use log::{error, trace, warn}; use orka_proto::scheduler_controller::{SchedulingRequest, Workload, WorkloadInstance}; use serde_json::{self, json, Value}; use validator::Validate;