Skip to content

Commit

Permalink
FFM-10286 Don't re-poll immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
erdirowlands committed Dec 28, 2023
1 parent ce783d2 commit 1124e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion force-app/main/classes/FFClientBuilder.cls
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public class FFClientBuilder {
}

public FFClient build(){
Boolean isPollingEnabled = pollingIntervalInSeconds > 0;
FFClient client = FFClient.create(this.sdkKey, this.config);

// Fetch initial cache values
client.updateCache();

Boolean isPollingEnabled = pollingIntervalInSeconds > 0;
if (!isPollingEnabled) {
return client;
}
Expand Down

0 comments on commit 1124e65

Please sign in to comment.