Skip to content

Commit

Permalink
lints and better docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Mar 19, 2024
1 parent 485ead9 commit 821364d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions relay-metrics/src/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ impl<'a> BucketView<'a> {
}

/// Returns the name of the bucket.
///
/// Caller holds shared ownership of the string.
pub fn clone_name(&self) -> Arc<str> {
Arc::clone(&self.inner.name)
}
Expand Down
1 change: 1 addition & 0 deletions relay-server/src/metric_stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ impl MetricStats {
}

/// Tracks the metric volume and outcome for the bucket.
#[allow(unused)] // TEMPORARY: until it is used outside of the store
pub fn track(&self, scoping: Scoping, bucket: &BucketView<'_>, outcome: Outcome) {
if !self.config.processing_enabled() || !self.is_rolled_out(scoping.organization_id) {
return;
Expand Down

0 comments on commit 821364d

Please sign in to comment.