This commit is contained in:
crusader 2018-07-01 01:48:16 +09:00
parent f5810183da
commit b834f36e2b

View File

@ -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
} }