We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5421f61 commit 8c489d9Copy full SHA for 8c489d9
cns/restserver/homeazmonitor.go
@@ -54,6 +54,7 @@ func (h *HomeAzMonitor) readCacheValue() cns.GetHomeAzResponse {
54
return cachedResp.(cns.GetHomeAzResponse)
55
}
56
57
+ // Cache miss - populate cache and try again
58
ctx, cancel := context.WithTimeout(context.Background(), ContextTimeOut)
59
defer cancel()
60
h.Populate(ctx)
@@ -62,6 +63,7 @@ func (h *HomeAzMonitor) readCacheValue() cns.GetHomeAzResponse {
62
63
64
65
66
+ // Still no cache value after populate attempt
67
return cns.GetHomeAzResponse{
68
Response: cns.Response{
69
ReturnCode: types.NotFound,
0 commit comments