8000 fix: different interval headers are now sent for metrics/features by sjaanus · Pull Request #289 · Unleash/unleash-client-java · GitHub
[go: up one dir, main page]

Skip to content

fix: different interval headers are now sent for metrics/features #289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 3, 2025

Conversation

sjaanus
Copy link
Contributor
@sjaanus sjaanus commented Mar 3, 2025

Previously same interval was sent to both requests, metrics and features. Now for metrics we are sending metrics interval and for feature fetching, we send refreshInterval.

public class OkHttpFeatureFetcher implements FeatureFetcher {
private final HttpUrl toggleUrl;
private final OkHttpClient client;
private final UnleashConfig config;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need to store the entire config if you only need the interval?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Storing interval only now

8000
@github-project-automation github-project-automation bot moved this from New to Approved PRs in Issues and PRs Mar 3, 2025
@sjaanus sjaanus merged commit ffa1820 into main Mar 3, 2025
10 checks passed
@sjaanus sjaanus deleted the fix-he branch March 3, 2025 12:27
@github-project-automation github-project-automation bot moved this from Approved PRs to Done in Issues and PRs Mar 3, 2025
@coveralls
Copy link
Collaborator
coveralls commented Mar 3, 2025

Coverage Status

coverage: 83.022% (+3.4%) from 79.623%
when pulling 92f9a20 on fix-he
into 27f6735 on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants
0