Discard element consumer is accepting other elements than ReferenceCounted
Motivation:
When I use DefaultRSocketClient in logs files I see warning log entries like:
] WARN reactor.core.publisher.Operators : Error in discard hook
java.lang.ClassCastException: class org.springframework.core.io.buffer.NettyDataBuffer cannot be cast to class io.netty.util.ReferenceCounted (org.springframework.core.io.buffer.NettyDataBuffer and io.netty.util.ReferenceCounted are in unnamed module of loader 'app')
Modifications:
Make discard consumer accept other types than ReferenceCounted parameter and avoid having warnings in logs
Result:
The warning log entries are not created by DefaultRSocketClient.
Discard element consumer is accepting other elements than ReferenceCounted
Motivation:
When I use DefaultRSocketClient in logs files I see warning log entries like:
Modifications:
Make discard consumer accept other types than ReferenceCounted parameter and avoid having warnings in logs
Result:
The warning log entries are not created by DefaultRSocketClient.