[#170] Updated docs and configuration of archive section

Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
This commit is contained in:
Nikita Zinkevich 2024-12-06 15:01:16 +03:00
parent 1e7309684b
commit 1e897aa3c3
Signed by: nzinkevich
GPG key ID: 748EA1D0B2E6420A
4 changed files with 24 additions and 21 deletions

View file

@ -134,7 +134,7 @@ func (h *Handler) getZipResponseWriter(ctx context.Context, log *zap.Logger, res
func (h *Handler) createZipFile(zw *zip.Writer, obj *object.Object) (io.Writer, error) {
method := zip.Store
if h.config.ZipCompression() {
if h.config.ArchiveCompression() {
method = zip.Deflate
}
@ -177,7 +177,7 @@ func (h *Handler) getTarResponseWriter(ctx context.Context, log *zap.Logger, res
defer resSearch.Close()
compressionLevel := gzip.NoCompression
if h.config.ZipCompression() {
if h.config.ArchiveCompression() {
compressionLevel = gzip.DefaultCompression
}