Skip to content

Commit

Permalink
fix: remote configuration default targets version
Browse files Browse the repository at this point in the history
  • Loading branch information
dmehala committed Jan 29, 2024
1 parent 0f508e1 commit 45c70f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/datadog/remote_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class RemoteConfigurationManager {
// Represents the *current* state of the RemoteConfigurationManager.
// It is also used to report errors to the remote source.
struct State {
uint64_t targets_version = 1;
uint64_t targets_version = 0;
std::string opaque_backend_state;
Optional<std::string> error_message;
};
Expand Down
2 changes: 1 addition & 1 deletion test/test_remote_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ REMOTE_CONFIG_TEST("first payload") {
CHECK(payload["client"]["client_tracer"]["service"] == "testsvc");
CHECK(payload["client"]["client_tracer"]["env"] == "test");
CHECK(payload["client"]["state"]["root_version"] == 1);
CHECK(payload["client"]["state"]["targets_version"] == 1);
CHECK(payload["client"]["state"]["targets_version"] == 0);
}

REMOTE_CONFIG_TEST("response processing") {
Expand Down

0 comments on commit 45c70f8

Please sign in to comment.