Skip to content
Permalink
Browse files

Remove unused code:

- 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 58a7d64896e42101aef33384f0d84903a9b31957
Showing with 0 additions and 13 deletions.
  1. +0 −13 api/src/services/docker/docker_infrastructure.rs
@@ -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)

0 comments on commit 58a7d64

Please sign in to comment.
You can’t perform that action at this time.