mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 10:22:20 +08:00
Add timeout
This commit is contained in:
parent
acfb9adbd2
commit
08bc787356
@ -3960,7 +3960,7 @@ ACTOR Future<int> cli(CLIOptions opt, LineNoise* plinenoise) {
|
|||||||
is_error = true;
|
is_error = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
wait(GlobalConfig::globalConfig().onInitialized());
|
wait(timeout(GlobalConfig::globalConfig().onInitialized(), 3, Void()));
|
||||||
if (tokencmp(tokens[2], "get")) {
|
if (tokencmp(tokens[2], "get")) {
|
||||||
if (tokens.size() != 3) {
|
if (tokens.size() != 3) {
|
||||||
fprintf(stderr, "ERROR: Addtional arguments to `get` are not supported.\n");
|
fprintf(stderr, "ERROR: Addtional arguments to `get` are not supported.\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user