Skip to content

Commit

Permalink
metrics: unpub Metrics::new()
Browse files Browse the repository at this point in the history
As the user should not be able to create metrics instance otherwise
than by `get_metrics()` function, the `Metrics::new()` method shall
be set to pub(crate) visibility to support only internal usage.
  • Loading branch information
QuerthDP committed Jan 22, 2025
1 parent d24b948 commit 6dab731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scylla/src/observability/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pub struct Metrics {
}

impl Metrics {
pub fn new() -> Self {
pub(crate) fn new() -> Self {
Self {
errors_num: AtomicU64::new(0),
queries_num: AtomicU64::new(0),
Expand Down

0 comments on commit 6dab731

Please sign in to comment.