Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Commit 444eb77

Browse files
authored
Use SetLength to reset Position (#217)
Signed-off-by: Kraemer, Benjamin <[email protected]>
1 parent b8ebf8b commit 444eb77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Communication/Jaeger.Communication.Thrift/Senders/ThriftSenderBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public ThriftSenderBase(ProtocolType protocolType, int maxPacketSize)
5050

5151
public int GetSize(TBase thriftBase)
5252
{
53-
_memoryTransport.Length = 0;
53+
_memoryTransport.SetLength(0);
5454
thriftBase.WriteAsync(ProtocolFactory.GetProtocol(_memoryTransport), CancellationToken.None).GetAwaiter().GetResult();
5555
return _memoryTransport.Length;
5656
}

0 commit comments

Comments
 (0)