refactor use const CountEntryChunksForGzip

This commit is contained in:
Konstantin Lebedev
2022-05-01 22:28:55 +05:00
parent ec0ed41e37
commit 21033ff4c3
17 changed files with 55 additions and 36 deletions

View File

@@ -107,7 +107,7 @@ func (store *MongodbStore) UpdateEntry(ctx context.Context, entry *filer.Entry)
return fmt.Errorf("encode %s: %s", entry.FullPath, err)
}
if len(entry.Chunks) > 50 {
if len(entry.Chunks) > filer.CountEntryChunksForGzip {
meta = util.MaybeGzipData(meta)
}