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 { ...@@ -157,16 +157,16 @@ func NewConfig(ctx *cli.Context) CLIConfig {
func (c CLIConfig) NewCompressorFactory() CompressorFactory { func (c CLIConfig) NewCompressorFactory() CompressorFactory {
return func() (derive.Compressor, error) { return func() (derive.Compressor, error) {
switch c.CompressorKind { switch c.CompressorKind {
case flags.CompressorShadow: case flags.CompressorTarget:
return NewShadowCompressor(
c.MaxL1TxSize - 1, // subtract 1 byte for version
)
default:
return NewTargetSizeCompressor( return NewTargetSizeCompressor(
c.TargetL1TxSize-1, // subtract 1 byte for version c.TargetL1TxSize-1, // subtract 1 byte for version
c.TargetNumFrames, c.TargetNumFrames,
c.ApproxComprRatio, c.ApproxComprRatio,
) )
default:
return NewShadowCompressor(
c.MaxL1TxSize - 1, // subtract 1 byte for version
)
} }
} }
} }
...@@ -92,7 +92,7 @@ var ( ...@@ -92,7 +92,7 @@ var (
flags.EnumString[CompressorKind](CompressorKinds), flags.EnumString[CompressorKind](CompressorKinds),
EnvVar: opservice.PrefixEnvVar(envVarPrefix, "COMPRESSOR"), EnvVar: opservice.PrefixEnvVar(envVarPrefix, "COMPRESSOR"),
Value: func() *CompressorKind { Value: func() *CompressorKind {
out := CompressorTarget out := CompressorShadow
return &out 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