summaryrefslogtreecommitdiffstats
path: root/src/endpoint/configured.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-11-06 18:03:22 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-11-07 14:53:15 +0100
commit8fbb4fc43073a19135f0b61783606877e9af5db8 (patch)
treee9774d5fbb77f010c882e5aea66ff1a6f5438f65 /src/endpoint/configured.rs
parent8067cd1fa454fea53bde88bf19797b4500838aed (diff)
Fix: Have timeout when stopping container (1 sec)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/endpoint/configured.rs')
-rw-r--r--src/endpoint/configured.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/endpoint/configured.rs b/src/endpoint/configured.rs
index 9ebf56a..7d353d6 100644
--- a/src/endpoint/configured.rs
+++ b/src/endpoint/configured.rs
@@ -247,7 +247,7 @@ impl Endpoint {
.await
.with_context(|| anyhow!("Copying the TAR stream to the staging store"))?;
- container.stop(None).await?;
+ container.stop(Some(std::time::Duration::new(1, 0))).await?;
Ok(r)
}