diff --git a/src/cli/src/services.rs b/src/cli/src/services.rs index a6894b6..2f33c5e 100644 --- a/src/cli/src/services.rs +++ b/src/cli/src/services.rs @@ -2,7 +2,7 @@ use crate::utils::ConfigFileHandler; use reqwest::Client; use serde::Deserialize; use shared_models::{BuildConfig, CloudletDtoRequest, Language, ServerConfig}; -use std::{error::Error, path::PathBuf}; +use std::{error::Error}; #[derive(Deserialize, Debug)] struct TomlConfig { @@ -14,14 +14,13 @@ struct TomlConfig { build: BuildConfig, } - pub struct CloudletClient {} impl CloudletClient { pub fn new_cloudlet_config(config: String) -> CloudletDtoRequest { let config: TomlConfig = toml::from_str(&config).expect("Error while parsing the config file"); - + let workload_name = config.workload_name; let code: String = ConfigFileHandler::read_file(&config.build.source_code_path) .expect("Error while reading the code file"); diff --git a/src/shared-models/src/lib.rs b/src/shared-models/src/lib.rs index f087310..73362a3 100644 --- a/src/shared-models/src/lib.rs +++ b/src/shared-models/src/lib.rs @@ -51,7 +51,6 @@ pub struct BuildConfig { pub release: bool, } - #[derive(Serialize, Deserialize, Debug)] pub struct AgentExecuteDtoRequest {}