aboutsummaryrefslogtreecommitdiff
path: root/docker/bckp/kv_to_s3.go
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-05-31 13:05:56 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-05-31 13:05:56 +0200
commita2e1f61cf8b70f0e63fc6f8eddbbcf0477263f8f (patch)
tree2ba987a273cb56f3bb3dc4570c1a2e8798ce1757 /docker/bckp/kv_to_s3.go
parent701da9ef260f3f451bd73f5829109652e587015a (diff)
downloadinfrastructure-a2e1f61cf8b70f0e63fc6f8eddbbcf0477263f8f.tar.gz
infrastructure-a2e1f61cf8b70f0e63fc6f8eddbbcf0477263f8f.zip
WIP sodium binding
Diffstat (limited to 'docker/bckp/kv_to_s3.go')
-rw-r--r--docker/bckp/kv_to_s3.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/docker/bckp/kv_to_s3.go b/docker/bckp/kv_to_s3.go
index 82dc96c..5b629b8 100644
--- a/docker/bckp/kv_to_s3.go
+++ b/docker/bckp/kv_to_s3.go
@@ -48,6 +48,7 @@ func main() {
errIsPanic(err, "Unable to build a new client. %v", err)
reader, _, err := consul.Snapshot().Save(&options)
+ defer reader.Close()
errIsPanic(err, "Snapshot failed. %v", err)
//--- Get encryption key and check it