Skip to content

Commit

Permalink
Revert "WIP"
Browse files Browse the repository at this point in the history
This reverts commit db73792.
  • Loading branch information
ocelotl committed Sep 8, 2023
1 parent db73792 commit f078af1
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,11 @@ def collect(
"""
Atomically return a point for the current value of the metric.
"""

with self._lock:
if not any(self._bucket_counts):
return None

bucket_counts = [
bucket_count for bucket_count in self._bucket_counts
]

bucket_counts = self._bucket_counts
start_time_unix_nano = self._start_time_unix_nano
sum_ = self._sum
max_ = self._max
Expand Down

0 comments on commit f078af1

Please sign in to comment.