Skip to content

Commit bc17a7f

Browse files
committed
Fix lint
1 parent 0bdcb40 commit bc17a7f

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

stress/src/metrics_counter.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ lazy_static! {
2828
"value1", "value2", "value3", "value4", "value5", "value6", "value7", "value8", "value9",
2929
"value10"
3030
];
31-
static ref COUNTER: Counter<u64> = PROVIDER
32-
.meter("test")
33-
.u64_counter("hello")
34-
.init();
31+
static ref COUNTER: Counter<u64> = PROVIDER.meter("test").u64_counter("hello").init();
3532
}
3633

3734
thread_local! {

stress/src/metrics_histogram.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ lazy_static! {
2828
"value1", "value2", "value3", "value4", "value5", "value6", "value7", "value8", "value9",
2929
"value10"
3030
];
31-
static ref HISTOGRAM: Histogram<u64> = PROVIDER
32-
.meter("test")
33-
.u64_histogram("hello")
34-
.init();
31+
static ref HISTOGRAM: Histogram<u64> = PROVIDER.meter("test").u64_histogram("hello").init();
3532
}
3633

3734
thread_local! {

stress/src/metrics_overflow.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ lazy_static! {
2424
static ref PROVIDER: SdkMeterProvider = SdkMeterProvider::builder()
2525
.with_reader(ManualReader::builder().build())
2626
.build();
27-
static ref COUNTER: Counter<u64> = PROVIDER
28-
.meter("test")
29-
.u64_counter("hello")
30-
.init();
27+
static ref COUNTER: Counter<u64> = PROVIDER.meter("test").u64_counter("hello").init();
3128
}
3229

3330
thread_local! {

0 commit comments

Comments
 (0)