Skip to content

Commit 3e98db4

Browse files
authored
[Service Bus] Remove cancellation check (Azure#34537)
The focus of these changes is to remove a check of the cancellation token during message scheduling, as the impact of doing so for each message is higher than the benefit.
1 parent c5bad37 commit 3e98db4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sdk/servicebus/Azure.Messaging.ServiceBus/src/Amqp/AmqpSender.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ internal async Task<IReadOnlyList<long>> ScheduleMessageInternalAsync(
457457
}
458458

459459
entries.Add(entry);
460-
cancellationToken.ThrowIfCancellationRequested<TaskCanceledException>();
461460
}
462461

463462
request.Map[ManagementConstants.Properties.Messages] = entries;

0 commit comments

Comments
 (0)