Skip to content

Commit

Permalink
changed result return for error free builder call
Browse files Browse the repository at this point in the history
  • Loading branch information
cparratto committed Feb 28, 2024
1 parent 2e6b937 commit f4b700a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions metrics-exporter-prometheus/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,9 @@ impl PrometheusBuilder {
/// Sets the default bucket count for rolling summaries
///
/// Count number buckets are created to store summary information
///
/// ## Errors
///
/// If `value` less than 1 error will be thrown
pub fn set_bucket_count(mut self, count: NonZeroU32) -> Result<Self, BuildError> {
pub fn set_bucket_count(mut self, count: NonZeroU32) -> Self {
self.bucket_count = Some(count);
Ok(self)
self
}

/// Sets the buckets to use when rendering histograms.
Expand Down

0 comments on commit f4b700a

Please sign in to comment.