Skip to content

Commit b3e35ba

Browse files
committed
Undo hello app changes.
1 parent 8ee6a0d commit b3e35ba

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

examples/hello-cpp-client/main.cpp

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
// Set INIT_TIMEOUT_MILLISECONDS to the amount of time you will wait for
1414
// the client to become initialized.
15-
#define INIT_TIMEOUT_MILLISECONDS 9999999999
15+
#define INIT_TIMEOUT_MILLISECONDS 3000
1616

1717
char const* get_with_env_fallback(char const* source_val,
1818
char const* env_variable,
@@ -53,25 +53,14 @@ int main() {
5353
}
5454
} else {
5555
std::cout << "*** SDK initialization didn't complete in "
56-
<< INIT_TIMEOUT_MILLISECONDS << "ms\n";
56+
<< INIT_TIMEOUT_MILLISECONDS << "ms\n";
5757
return 1;
5858
}
5959

6060
bool const flag_value = client.BoolVariation(FEATURE_FLAG_KEY, false);
6161

6262
std::cout << "*** Feature flag '" << FEATURE_FLAG_KEY << "' is "
63-
<< (flag_value ? "true" : "false") << " for this user\n\n";
64-
65-
client.FlagNotifier().OnFlagChange("my-boolean-flag",
66-
[](const std::shared_ptr<
67-
flag_manager::FlagValueChangeEvent>
68-
& change_event) {
69-
std::cout << "my-boolean-flag changed! " << change_event->NewValue() << std::endl;
70-
});
71-
72-
// Keep it running.
73-
std::string in;
74-
std::cin >> in;
63+
<< (flag_value ? "true" : "false") << " for this user\n\n";
7564

7665
return 0;
7766
}
@@ -90,4 +79,4 @@ char const* get_with_env_fallback(char const* source_val,
9079

9180
std::cout << "*** " << error_msg << std::endl;
9281
std::exit(1);
93-
}
82+
}

0 commit comments

Comments
 (0)