Use configuration property for ConfigWatch waitTime

This commit is contained in:
Spencer Gibb
2016-08-24 15:15:48 -06:00
parent 98941a4e6e
commit 76759998e5

View File

@@ -80,7 +80,9 @@ public class ConfigWatch implements Closeable, ApplicationEventPublisherAware {
currentIndex = -1L;
}
Response<List<GetValue>> response = this.consul.getKVValues(context, new QueryParams(2, currentIndex));
Response<List<GetValue>> response = this.consul.getKVValues(context,
new QueryParams(this.properties.getWatch().getWaitTime(),
currentIndex));
Long newIndex = response.getConsulIndex();