This commit is contained in:
Harsha Nalluru 2020-11-04 22:01:36 -08:00 коммит произвёл GitHub
Родитель b90c2a7128
Коммит 82ff76f468
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -34,7 +34,7 @@ async function main() {
async function processDeadletterMessageQueue() {
// If connecting to a subscription's dead letter queue you can use the createReceiver(topicName, subscriptionName) overload
const receiver = sbClient.createReceiver(queueName, { subQueue: "deadLetter" });
const receiver = sbClient.createReceiver(queueName, { subQueueType: "deadLetter" });
const messages = await receiver.receiveMessages(1);

Просмотреть файл

@ -83,7 +83,7 @@ async function receiveFromNextSession(serviceBusClient) {
} catch (err) {
if (
isServiceBusError(err) &&
(err.reason === "SessionCannotBeLocked" || err.reason === "OperationTimeout")
(err.reason === "SessionCannotBeLocked" || err.reason === "ServiceTimeout")
) {
console.log(`INFO: no available sessions, sleeping for ${delayOnErrorMs}`);
} else {

Просмотреть файл

@ -35,7 +35,7 @@ export async function main() {
async function processDeadletterMessageQueue() {
// If connecting to a subscription's dead letter queue you can use the createReceiver(topicName, subscriptionName) overload
const receiver = sbClient.createReceiver(queueName, { subQueue: "deadLetter" });
const receiver = sbClient.createReceiver(queueName, { subQueueType: "deadLetter" });
const messages = await receiver.receiveMessages(1);

Просмотреть файл

@ -89,7 +89,7 @@ async function receiveFromNextSession(serviceBusClient: ServiceBusClient): Promi
} catch (err) {
if (
isServiceBusError(err) &&
(err.reason === "SessionCannotBeLocked" || err.reason === "OperationTimeout")
(err.reason === "SessionCannotBeLocked" || err.reason === "ServiceTimeout")
) {
console.log(`INFO: no available sessions, sleeping for ${delayOnErrorMs}`);
} else {