Skip to content

Commit

Permalink
Remove unused code:
Browse files Browse the repository at this point in the history
- No need to remove volumes due to usage of copy_into of shiplift
  • Loading branch information
schrieveslaach committed Feb 19, 2019
1 parent 4edabdf commit 58a7d64
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions api/src/services/docker/docker_infrastructure.rs
Expand Up @@ -498,19 +498,6 @@ impl Infrastructure for DockerInfrastructure {
container_details_futures.push(future);
}

let container_details = runtime.block_on(join_all(container_details_futures))?;
let mut delete_volumes_futures = Vec::new();
for mount in container_details
.into_iter()
.flat_map(|container_details| container_details.mounts)
{
delete_volumes_futures.push(docker.volumes().get(&mount.source).delete());
}

if let Err(e) = runtime.block_on(join_all(delete_volumes_futures)) {
error!("Cannot delete volume: {}", e);
}

self.delete_network(app_name)?;

Ok(services)
Expand Down

0 comments on commit 58a7d64

Please sign in to comment.