Skip to content

Commit

Permalink
Set default timeout=10, return on NO_RESOURCE
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin O'Donnell <[email protected]>
  • Loading branch information
scealiontach committed Jun 22, 2019
1 parent f26f531 commit 7ad8aae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class SawtoothReadService implements ReadService {

private static final Timestamp BEGINNING_OF_EPOCH = new Timestamp(0);

private static final long DEFAULT_TIMEOUT = 0;
private static final long DEFAULT_TIMEOUT = 10;

private final String url;
private final ExecutorService executorService;
Expand Down Expand Up @@ -179,6 +179,7 @@ private TimeModel getTimeModel() {
default:
LOGGER.severe(
String.format("Invalid response received from ClientBlockGetByNumRequest: %s", response.getStatus()));
return null;
}
} catch (TimeoutException exc) {
LOGGER.warning("Still waiting for ClientStateGetResponse...");
Expand Down

0 comments on commit 7ad8aae

Please sign in to comment.