forked from j62/ctbrec
Make sure the httpTimeout is at least 10 secs
This commit is contained in:
parent
3a181d61a8
commit
a4fd3034a8
|
@ -52,6 +52,7 @@ public class Config {
|
|||
try(FileInputStream fin = new FileInputStream(configFile); Buffer buffer = new Buffer()) {
|
||||
BufferedSource source = buffer.readFrom(fin);
|
||||
settings = adapter.fromJson(source);
|
||||
settings.httpTimeout = Math.max(settings.httpTimeout, 10_000);
|
||||
}
|
||||
} else {
|
||||
LOG.error("Config file does not exist. Falling back to default values.");
|
||||
|
|
Loading…
Reference in New Issue