summaryrefslogtreecommitdiffstats
path: root/src/sandbox
diff options
context:
space:
mode:
Diffstat (limited to 'src/sandbox')
-rw-r--r--src/sandbox/kata.rs1
-rw-r--r--src/sandbox/loopback.rs1
-rw-r--r--src/sandbox/mod.rs4
-rw-r--r--src/sandbox/remote.rs1
4 files changed, 1 insertions, 6 deletions
diff --git a/src/sandbox/kata.rs b/src/sandbox/kata.rs
index 84a79e4..a54110a 100644
--- a/src/sandbox/kata.rs
+++ b/src/sandbox/kata.rs
@@ -308,7 +308,6 @@ mod kata_backend {
Ok(vec![SandboxInfo {
id: format!("kata@{} via {}", self.addr, self.provisioner.name()),
profile: self.cfg.build_profile.clone(),
- warm: !self.pending.lock().unwrap().is_empty(),
}])
}
}
diff --git a/src/sandbox/loopback.rs b/src/sandbox/loopback.rs
index 9629206..fb5ba00 100644
--- a/src/sandbox/loopback.rs
+++ b/src/sandbox/loopback.rs
@@ -53,7 +53,6 @@ impl SandboxBackend for LoopbackBackend {
Ok(vec![SandboxInfo {
id: "loopback".into(),
profile: self.cfg.build_profile.clone(),
- warm: true,
}])
}
}
diff --git a/src/sandbox/mod.rs b/src/sandbox/mod.rs
index ded76f0..b82647b 100644
--- a/src/sandbox/mod.rs
+++ b/src/sandbox/mod.rs
@@ -64,12 +64,11 @@ pub struct SandboxSpec {
pub profile: String,
pub task: String,
pub ttl: Duration,
- pub disk_mb: u64,
}
impl SandboxSpec {
pub fn new(profile: impl Into<String>, task: impl Into<String>, ttl: Duration) -> Self {
- Self { profile: profile.into(), task: task.into(), ttl, disk_mb: 0 }
+ Self { profile: profile.into(), task: task.into(), ttl }
}
}
@@ -82,7 +81,6 @@ mod sandbox_info {
pub struct SandboxInfo {
pub id: String,
pub profile: String,
- pub warm: bool,
}
}
diff --git a/src/sandbox/remote.rs b/src/sandbox/remote.rs
index 6d369e2..8366e97 100644
--- a/src/sandbox/remote.rs
+++ b/src/sandbox/remote.rs
@@ -98,7 +98,6 @@ impl SandboxBackend for RemoteBackend {
Ok(vec![SandboxInfo {
id: format!("remote@{}", self.addr),
profile: self.cfg.build_profile.clone(),
- warm: !self.queue.is_empty(),
}])
}
}