Skip to content

Commit 4506a00

Browse files
committed
* Fix build errors.
1 parent af293d3 commit 4506a00

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

projects/RabbitMQ.Client/client/RentedMemory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void Dispose()
7070
if (RentedArray != null)
7171
{
7272
ArrayPool<byte>.Shared.Return(RentedArray);
73-
RentedArray = default;
73+
RentedArray = Array.Empty<byte>();
7474
Memory = default;
7575
}
7676
}

projects/RabbitMQ.Client/client/api/PublicationAddress.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
// Copyright (c) 2007-2024 Broadcom. All Rights Reserved.
3030
//---------------------------------------------------------------------------
3131

32+
using System.Diagnostics.CodeAnalysis;
3233
using System.Text.RegularExpressions;
3334

3435
namespace RabbitMQ.Client

projects/RabbitMQ.Client/client/impl/Session.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public Session(Connection connection, ushort channelNumber, uint maxBodyLength)
4848

4949
public override Task HandleFrameAsync(InboundFrame frame, CancellationToken cancellationToken)
5050
{
51-
IncomingCommand cmd = _assembler.HandleFrame(frame);
51+
IncomingCommand? cmd = _assembler.HandleFrame(frame);
5252
if (cmd is null)
5353
{
5454
return Task.CompletedTask;

0 commit comments

Comments
 (0)