multi: move logcompressor to logging.file.compressor

This is not a breaking change since the logcompressor config option has
not been released yet.
This commit is contained in:
Elle Mouton
2024-10-29 17:58:23 +02:00
parent 1886d3865b
commit 3adbdbb39a
6 changed files with 37 additions and 15 deletions

View File

@@ -52,9 +52,9 @@ var logCompressors = map[string]string{
Zstd: "zst",
}
// SuportedLogCompressor returns whether or not logCompressor is a supported
// SupportedLogCompressor returns whether or not logCompressor is a supported
// compression algorithm for log files.
func SuportedLogCompressor(logCompressor string) bool {
func SupportedLogCompressor(logCompressor string) bool {
_, ok := logCompressors[logCompressor]
return ok