Actually use zstd encoder instead of directly wrapping file in gob

This commit is contained in:
Seednode 2024-02-06 15:48:39 -06:00
parent 158d304bee
commit 9989b42386
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -17,7 +17,7 @@ import (
const (
AllowedCharacters string = `^[A-z0-9.\-_]+$`
ReleaseVersion string = "8.5.1"
ReleaseVersion string = "8.5.2"
)
var (