aboutsummaryrefslogtreecommitdiff
path: root/docker/bckp/kv_to_s3.go
diff options
context:
space:
mode:
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