oops fix compression level

This commit is contained in:
creeper123123321 2021-06-25 21:25:45 -03:00
parent 4de1948ac8
commit 7cb1f7e4ac

View File

@ -19,7 +19,7 @@ class CompressionCodec(val threshold: Int) : MessageToMessageCodec<ByteBuf, Byte
private lateinit var compressor: VelocityCompressor
override fun handlerAdded(ctx: ChannelHandlerContext) {
compressor = Natives.compress.get().create(threshold)
compressor = Natives.compress.get().create(6)
}
override fun handlerRemoved(ctx: ChannelHandlerContext) {