Commit 7a73979b authored by Michael de Hoog's avatar Michael de Hoog

Run tests using shadow compressor as default

parent a71d036c
......@@ -157,16 +157,16 @@ func NewConfig(ctx *cli.Context) CLIConfig {
func (c CLIConfig) NewCompressorFactory() CompressorFactory {
return func() (derive.Compressor, error) {
switch c.CompressorKind {
case flags.CompressorShadow:
return NewShadowCompressor(
c.MaxL1TxSize - 1, // subtract 1 byte for version
)
default:
case flags.CompressorTarget:
return NewTargetSizeCompressor(
c.TargetL1TxSize-1, // subtract 1 byte for version
c.TargetNumFrames,
c.ApproxComprRatio,
)
default:
return NewShadowCompressor(
c.MaxL1TxSize - 1, // subtract 1 byte for version
)
}
}
}
......@@ -92,7 +92,7 @@ var (
flags.EnumString[CompressorKind](CompressorKinds),
EnvVar: opservice.PrefixEnvVar(envVarPrefix, "COMPRESSOR"),
Value: func() *CompressorKind {
out := CompressorTarget
out := CompressorShadow
return &out
}(),
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment