From ae09ce670b8f2f6b0f831bd3ff3a5aa57ab520de Mon Sep 17 00:00:00 2001 From: Victor Conner Date: Tue, 11 Jun 2024 09:17:50 +0200 Subject: [PATCH] fix: Metrics reporting --- distribution.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution.go b/distribution.go index 6463d24..d21f917 100644 --- a/distribution.go +++ b/distribution.go @@ -181,8 +181,9 @@ func distributedBatchFetch[V, T any](c *Client[T], keyFn KeyFn, fetchFn BatchFet if !c.distributedEarlyRefreshes || c.clock.Since(record.CreatedAt) < c.distributedRefreshAfterDuration { // We never wan't to return missing records. if !record.IsMissingRecord { - c.reportDistributedMissingRecord() fresh[id] = record.Value + } else { + c.reportDistributedMissingRecord() } continue }