Fix issue with missing `return` in blobBatch (#24573)
This commit is contained in:
Родитель
bbb29823c9
Коммит
65e8bb6db3
|
@ -184,20 +184,24 @@ export class BlobBatch {
|
|||
options = {};
|
||||
}
|
||||
|
||||
tracingClient.withSpan("BatchDeleteRequest-addSubRequest", options, async (updatedOptions) => {
|
||||
this.setBatchType("delete");
|
||||
await this.addSubRequestInternal(
|
||||
{
|
||||
url: url,
|
||||
credential: credential,
|
||||
},
|
||||
async () => {
|
||||
await new BlobClient(url, this.batchRequest.createPipeline(credential)).delete(
|
||||
updatedOptions
|
||||
);
|
||||
}
|
||||
);
|
||||
});
|
||||
return tracingClient.withSpan(
|
||||
"BatchDeleteRequest-addSubRequest",
|
||||
options,
|
||||
async (updatedOptions) => {
|
||||
this.setBatchType("delete");
|
||||
await this.addSubRequestInternal(
|
||||
{
|
||||
url: url,
|
||||
credential: credential,
|
||||
},
|
||||
async () => {
|
||||
await new BlobClient(url, this.batchRequest.createPipeline(credential)).delete(
|
||||
updatedOptions
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче