Skip to content

Commit

Permalink
level
Browse files Browse the repository at this point in the history
  • Loading branch information
danhab99 committed Aug 16, 2023
1 parent 835fe5e commit 41fa83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func Backup(config *BackupConfig) {
log.Println("Compressing chunk", in.i)
compressedBuffer := new(bytes.Buffer)

gzipWriter := gzip.NewWriter(compressedBuffer)
gzipWriter := check(gzip.NewWriterLevel(compressedBuffer, gzip.BestCompression))
encryptWriter := check(age.Encrypt(gzipWriter, recipient.Recipient()))

check(io.Copy(encryptWriter, in.buffer))
Expand Down

0 comments on commit 41fa83f

Please sign in to comment.