Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
Signed-off-by: Mauran <thomas.mauran@etu.umontpellier.fr>
  • Loading branch information
thomas-mauran committed May 1, 2024
1 parent 992ff55 commit 27efb44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/api/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ pub async fn run(req_body: web::Json<CloudletDtoRequest>) -> impl Responder {
workload_name: req.workload_name,
code: req.code,
language: match req.language {
Language::PYTHON => 0,
Language::PYTHON => 0,
Language::NODE => 1,
Language::RUST => 2,
_ => unreachable!("Invalid language")
_ => unreachable!("Invalid language"),
},
log_level: req.log_level as i32,
};
Expand Down
5 changes: 2 additions & 3 deletions src/vmm/src/grpc/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,16 @@ impl VmmServiceTrait for VmmService {
let agent_request = ExecuteRequest {
workload_name: vmm_request.workload_name,
language: match vmm_request.language {
0 => "python".to_string(),
0 => "python".to_string(),
1 => "node".to_string(),
2 => "rust".to_string(),
_ => unreachable!("Invalid language")
_ => unreachable!("Invalid language"),
},
action: 2, // Prepare and run
code: vmm_request.code,
config_str: "[build]\nrelease = true".to_string(),
};


match grpc_client {
Ok(mut client) => {
info!("Successfully connected to Agent service");
Expand Down

0 comments on commit 27efb44

Please sign in to comment.