Commit 9df77ef8 authored by Michael de Hoog's avatar Michael de Hoog

What happens if you make the shadow compressor the default?

parent c62ab3ea
......@@ -100,16 +100,16 @@ func (cc *ChannelConfig) Check() error {
func (cc *ChannelConfig) NewCompressor() (derive.Compressor, error) {
switch cc.CompressorKind {
case flags.CompressorShadow:
return NewShadowCompressor(
cc.MaxFrameSize,
)
default:
case flags.CompressorTarget:
return NewTargetSizeCompressor(
cc.TargetFrameSize,
cc.TargetNumFrames,
cc.ApproxComprRatio,
)
default:
return NewShadowCompressor(
cc.MaxFrameSize,
)
}
}
......
......@@ -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