Decrease Watch.waitTime to 55.

So it is less than the ConsulRawClient.HttpClient timeout of 60s

fixes gh-240
This commit is contained in:
Spencer Gibb
2016-11-02 13:43:44 -06:00
parent 2e5d2b0d5e
commit bf5ecf8a49

View File

@@ -71,8 +71,11 @@ public class ConsulConfigProperties {
@Data
public class Watch {
/** The number of seconds to wait (or block) for watch query. Defaults to 60. */
private int waitTime = 60;
/** The number of seconds to wait (or block) for watch query, defaults to 55.
* Needs to be less than default ConsulClient (defaults to 60). To increase ConsulClient
* timeout create a ConsulClient bean with a custom ConsulRawClient with a custom
* HttpClient. */
private int waitTime = 55;
/** If the watch is enabled. Defaults to true. */
private boolean enabled = true;