Move compression format slice variable from root.go => index.go

This commit is contained in:
Seednode 2024-01-08 16:00:37 -06:00
parent 56c6565cb1
commit e13c141c5c
2 changed files with 12 additions and 12 deletions

View File

@ -24,6 +24,17 @@ import (
"seedno.de/seednode/roulette/types" "seedno.de/seednode/roulette/types"
) )
var CompressionFormats = []string{
"flate",
"gzip",
"lz4",
"lzw",
"none",
"snappy",
"zlib",
"zstd",
}
type fileIndex struct { type fileIndex struct {
mutex *sync.RWMutex mutex *sync.RWMutex
list []string list []string

View File

@ -17,7 +17,7 @@ import (
const ( const (
AllowedCharacters string = `^[A-z0-9.\-_]+$` AllowedCharacters string = `^[A-z0-9.\-_]+$`
ReleaseVersion string = "4.0.4" ReleaseVersion string = "4.0.5"
) )
var ( var (
@ -63,17 +63,6 @@ var (
Version bool Version bool
Videos bool Videos bool
CompressionFormats = []string{
"flate",
"gzip",
"lz4",
"lzw",
"none",
"snappy",
"zlib",
"zstd",
}
RequiredArgs = []string{ RequiredArgs = []string{
"all", "all",
"audio", "audio",