storage/cacher: mark the addition of a metric for waitUntilFreshAndBlock as completed

This commit is contained in:
Lukasz Szaszkiewicz 2024-03-05 10:23:23 +01:00
parent 55d1518126
commit 221ad9f7c2

View File

@ -1295,7 +1295,6 @@ func (c *Cacher) waitUntilWatchCacheFreshAndForceAllEvents(ctx context.Context,
c.watchCache.waitingUntilFresh.Add()
defer c.watchCache.waitingUntilFresh.Remove()
}
// TODO(p0lyn0mial): add a metric to track the number of times we have failed while waiting
err := c.watchCache.waitUntilFreshAndBlock(ctx, requestedWatchRV)
defer c.watchCache.RUnlock()
return err