Skip to content

Commit 81dc66a

Browse files
committed
fixup
1 parent 2351094 commit 81dc66a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RabbitMQ.AMQP.Client/Impl/AmqpQueueSpecification.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public IQueueSpecification OverflowStrategy(OverFlowStrategy overflow)
227227
public IQueueSpecification MaxLengthBytes(ByteCapacity maxLengthBytes)
228228
{
229229
Utils.ValidatePositive("Max length", maxLengthBytes);
230-
_queueArguments["x-max-length-bytes"] = maxLengthBytes;
230+
_queueArguments["x-max-length-bytes"] = (long)maxLengthBytes;
231231
return this;
232232
}
233233

@@ -386,7 +386,7 @@ public IStreamSpecification MaxAge(TimeSpan maxAge)
386386
public IStreamSpecification MaxSegmentSizeBytes(ByteCapacity maxSegmentSize)
387387
{
388388
Utils.ValidatePositive("x-stream-max-segment-size-bytes", maxSegmentSize);
389-
_parent._queueArguments["x-stream-max-segment-size-bytes"] = maxSegmentSize;
389+
_parent._queueArguments["x-stream-max-segment-size-bytes"] = (long)maxSegmentSize;
390390
return this;
391391
}
392392

0 commit comments

Comments
 (0)