Skip to content

Commit 6605685

Browse files
authored
fix: remote configuration default targets version (#95)
1 parent ea98433 commit 6605685

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/datadog/remote_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class RemoteConfigurationManager {
3030
// Represents the *current* state of the RemoteConfigurationManager.
3131
// It is also used to report errors to the remote source.
3232
struct State {
33-
uint64_t targets_version = 1;
33+
uint64_t targets_version = 0;
3434
std::string opaque_backend_state;
3535
Optional<std::string> error_message;
3636
};

test/test_remote_config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ REMOTE_CONFIG_TEST("first payload") {
4141
CHECK(payload["client"]["client_tracer"]["service"] == "testsvc");
4242
CHECK(payload["client"]["client_tracer"]["env"] == "test");
4343
CHECK(payload["client"]["state"]["root_version"] == 1);
44-
CHECK(payload["client"]["state"]["targets_version"] == 1);
44+
CHECK(payload["client"]["state"]["targets_version"] == 0);
4545
}
4646

4747
REMOTE_CONFIG_TEST("response processing") {

0 commit comments

Comments
 (0)