From 9989b42386c3e2f12c17a9f2125d732d6ba527fe Mon Sep 17 00:00:00 2001 From: Seednode Date: Tue, 6 Feb 2024 15:48:39 -0600 Subject: [PATCH] Actually use zstd encoder instead of directly wrapping file in gob --- cmd/index.go | 2 +- cmd/root.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/index.go b/cmd/index.go index a41927f..627fd29 100644 --- a/cmd/index.go +++ b/cmd/index.go @@ -147,7 +147,7 @@ func (index *fileIndex) Export(path string, errorChannel chan<- error) { } defer encoder.Close() - enc := gob.NewEncoder(file) + enc := gob.NewEncoder(encoder) index.mutex.RLock() err = enc.Encode(&index.list) diff --git a/cmd/root.go b/cmd/root.go index f1b6f5a..137849d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -17,7 +17,7 @@ import ( const ( AllowedCharacters string = `^[A-z0-9.\-_]+$` - ReleaseVersion string = "8.5.1" + ReleaseVersion string = "8.5.2" ) var (