Skip to content

Commit

Permalink
fix: rename pollEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikOseberg committed Dec 13, 2024
1 parent c2d0741 commit 04ba982
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ export class ClientFeatureToggleCache {

private async onUpdateRevisionEvent() {
if (this.flagResolver.isEnabled('deltaApi')) {
await this.pollEvents();
await this.listenToRevisionChange();
}
}

public async pollEvents() {
public async listenToRevisionChange() {
const keys = Object.keys(this.cache);

if (keys.length === 0) return;
Expand Down

0 comments on commit 04ba982

Please sign in to comment.