Skip to content

Commit fb56a0f

Browse files
committed
remove pageCount as service ensure etag changes on page add/delete
1 parent a3f068e commit fb56a0f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/AzureAppConfigurationImpl.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -447,18 +447,11 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
447447
listOptions
448448
).byPage();
449449

450-
let pageCount = 0;
451450
for await (const page of pageIterator) {
452451
if (page._response.status === 200) { // created or changed
453452
needRefresh = true;
454453
break;
455454
}
456-
// unchanged, check next page
457-
pageCount++;
458-
}
459-
460-
if (pageCount !== selector.pageEtags?.length) {
461-
needRefresh = true; // page count changed indicating feature flags are added or deleted
462455
}
463456

464457
if (needRefresh) {

0 commit comments

Comments
 (0)