Skip to content

Commit

Permalink
akka 2.5 does not support toArrayUnsafe()
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Oct 2, 2024
1 parent b75ad9d commit 5f3ce78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object PekkoPduProtobufCodecDecodeMessage {
@Argument(1) provider: RemoteActorRefProvider,
@Argument(2) localAddress: Address
): Unit = {
val ackAndEnvelope = AckAndContextAwareEnvelopeContainer.parseFrom(bs.toArrayUnsafe())
val ackAndEnvelope = AckAndContextAwareEnvelopeContainer.parseFrom(bs.toArray)
if (ackAndEnvelope.hasEnvelope && ackAndEnvelope.getEnvelope.hasTraceContext) {
val remoteCtx = ackAndEnvelope.getEnvelope.getTraceContext

Expand Down

0 comments on commit 5f3ce78

Please sign in to comment.