Skip to content

Commit

Permalink
feat(jstzd): implement async-drop for container
Browse files Browse the repository at this point in the history
  • Loading branch information
ryutamago committed Sep 19, 2024
1 parent 25d0429 commit 416a63e
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions crates/jstzd/src/docker/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,14 @@ use bollard::Docker;
use log::error;
use std::sync::Arc;

#[derive(Default)]
pub struct Container {
pub id: String,
client: Option<Arc<Docker>>,
dropped: bool,
_private: (),
}

impl Default for Container {
fn default() -> Self {
Self {
id: String::new(),
client: None,
dropped: false,
_private: (),
}
}
}

impl Container {
/// Creates a new container with running `id`
pub(super) fn new(client: Arc<Docker>, id: String) -> Self {
Expand Down

0 comments on commit 416a63e

Please sign in to comment.