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;
|
||||
continue;
|
||||
}
|
||||
wait(GlobalConfig::globalConfig().onInitialized());
|
||||
wait(timeout(GlobalConfig::globalConfig().onInitialized(), 3, Void()));
|
||||
if (tokencmp(tokens[2], "get")) {
|
||||
if (tokens.size() != 3) {
|
||||
fprintf(stderr, "ERROR: Addtional arguments to `get` are not supported.\n");
|
||||
|
|
Loading…
Reference in New Issue