Invoke super.onCacheRefreshed() before custom logic (#2604)
This commit is contained in:
committed by
Ryan Baxter
parent
29adaf26e9
commit
fb0d53a796
@@ -93,6 +93,8 @@ public class CloudEurekaClient extends DiscoveryClient {
|
||||
|
||||
@Override
|
||||
protected void onCacheRefreshed() {
|
||||
super.onCacheRefreshed();
|
||||
|
||||
if (this.cacheRefreshedCount != null) { //might be called during construction and will be null
|
||||
long newCount = this.cacheRefreshedCount.incrementAndGet();
|
||||
log.trace("onCacheRefreshed called with count: " + newCount);
|
||||
|
||||
Reference in New Issue
Block a user