Fix multiple @Inject constructors in ByteBufBodyHandler

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 3 years ago
parent 2fc7b0847a
commit e4b617d712
  1. 2
      buffer/src/main/kotlin/org/openrs2/buffer/ByteBufBodyHandler.kt

@ -13,7 +13,7 @@ import javax.inject.Singleton
@Singleton @Singleton
public class ByteBufBodyHandler @Inject constructor( public class ByteBufBodyHandler @Inject constructor(
private val alloc: ByteBufAllocator = ByteBufAllocator.DEFAULT private val alloc: ByteBufAllocator
) : HttpResponse.BodyHandler<ByteBuf> { ) : HttpResponse.BodyHandler<ByteBuf> {
override fun apply(responseInfo: HttpResponse.ResponseInfo): HttpResponse.BodySubscriber<ByteBuf> { override fun apply(responseInfo: HttpResponse.ResponseInfo): HttpResponse.BodySubscriber<ByteBuf> {
return object : HttpResponse.BodySubscriber<ByteBuf> { return object : HttpResponse.BodySubscriber<ByteBuf> {

Loading…
Cancel
Save