Skip to content

Commit

Permalink
Fixed a typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefán J. Sigurðarson committed Mar 19, 2021
1 parent ac5a4bb commit eb097d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/RabbitMQ.Client/client/impl/Frame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ internal static InboundFrame ReadFrom(Stream reader, byte[] frameHeaderBuffer)
}

FrameType type = (FrameType)firstByte;
var frameHeaderSpan = new ReadOnlySpan<byte>(frameHeaderBuffer, 1, 7);
var frameHeaderSpan = new ReadOnlySpan<byte>(frameHeaderBuffer, 1, 6);
int channel = NetworkOrderDeserializer.ReadUInt16(frameHeaderSpan);
int payloadSize = NetworkOrderDeserializer.ReadInt32(frameHeaderSpan.Slice(2, 4)); // FIXME - throw exn on unreasonable value

Expand Down

0 comments on commit eb097d2

Please sign in to comment.