Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danhab99 committed Aug 19, 2023
1 parent 67a7b4a commit c6c7985
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ func Backup(config *BackupConfig) {
return nil
}))
}

check0(tarWriter.Close())
check0(tarPipeWriter.Close())
}()

tarChunkChan := makeChunks(tarReader, &pool, int64(config.chunkSize))
Expand Down
2 changes: 1 addition & 1 deletion restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func Restore(config *BackupConfig) {
}
})

rawTarReader := syncronizeBuffers(decompressedBufferChan)
rawTarReader := syncronizeBuffers(decompressedBufferChan, &pool)
tarReader := tar.NewReader(rawTarReader)

for {
Expand Down

0 comments on commit c6c7985

Please sign in to comment.