Skip to content

Commit

Permalink
todo
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmindlin committed Mar 8, 2024
1 parent 4587f43 commit 0558ad7
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions locust-cli/src/farm/gcp/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,8 @@ use crate::farm::ExistingVM;

use super::{query::query_vms, THREAD_MAX_SIZE};

// @TODO: refactor duplication
pub fn query_and_delete_vms(zone: String) {
// let mut threads = Vec::new();
// for vm in query_vms(&zone) {
// let zone = zone.clone();
// threads.push(thread::spawn(move || {
// delete_vm(zone, vm);
// }));
// }

// for t in threads {
// t.join().unwrap();
// }

let vms = query_vms(&zone);
let n_vms = vms.len();
let mut batch = 0;
Expand All @@ -39,6 +28,7 @@ pub fn query_and_delete_vms(zone: String) {
}
}

// @TODO: refactor duplication
pub fn delete_vms(zone: String, vms: Vec<ExistingVM>) {
let n_vms = vms.len();
let mut batch = 0;
Expand Down

0 comments on commit 0558ad7

Please sign in to comment.