Skip to content

Commit

Permalink
fix: Metrics reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
creativecreature committed Jun 11, 2024
1 parent d956721 commit ae09ce6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ae09ce6

Please sign in to comment.