Skip to content

Commit

Permalink
Add FUTURE
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebakken committed Mar 3, 2023
1 parent fbd0f81 commit 638369b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RabbitMQ.Stream.Client/Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ private async ValueTask<bool> AwaitFlushAndRelease(ValueTask<FlushResult> task)

private int WriteCommandPayloadSize<T>(T command) where T : struct, ICommand
{
/*
* TODO FUTURE
* This code could be moved into a common base class for all outgoing
* commands
*/
var payloadSize = command.SizeNeeded;
var mem = writer.GetSpan(WireFormatting.SizeofUInt32);
var written = WireFormatting.WriteUInt32(mem, (uint)payloadSize);
Expand Down

0 comments on commit 638369b

Please sign in to comment.