Actually use zstd encoder instead of directly wrapping file in gob
This commit is contained in:
parent
158d304bee
commit
9989b42386
|
@ -147,7 +147,7 @@ func (index *fileIndex) Export(path string, errorChannel chan<- error) {
|
||||||
}
|
}
|
||||||
defer encoder.Close()
|
defer encoder.Close()
|
||||||
|
|
||||||
enc := gob.NewEncoder(file)
|
enc := gob.NewEncoder(encoder)
|
||||||
|
|
||||||
index.mutex.RLock()
|
index.mutex.RLock()
|
||||||
err = enc.Encode(&index.list)
|
err = enc.Encode(&index.list)
|
||||||
|
|
|
@ -17,7 +17,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AllowedCharacters string = `^[A-z0-9.\-_]+$`
|
AllowedCharacters string = `^[A-z0-9.\-_]+$`
|
||||||
ReleaseVersion string = "8.5.1"
|
ReleaseVersion string = "8.5.2"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in New Issue