ing
This commit is contained in:
parent
f5810183da
commit
b834f36e2b
|
@ -48,6 +48,12 @@ func (_ *GZipCodec) Decode(message []byte) ([]byte, error) {
|
||||||
|
|
||||||
var gZipCodec = &GZipCodec{}
|
var gZipCodec = &GZipCodec{}
|
||||||
|
|
||||||
|
func NewCompressionCodecSelector(threshold int) CodecSelector {
|
||||||
|
return &compressionCodecSelector{
|
||||||
|
threshold: threshold,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
type compressionCodecSelector struct {
|
type compressionCodecSelector struct {
|
||||||
threshold int
|
threshold int
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user