Skip to content

Commit ce6a48f

Browse files
committed
clipp
1 parent d09fc52 commit ce6a48f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opentelemetry-sdk/src/metrics/periodic_reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ impl<E: PushMetricExporter> PeriodicReaderInner<E> {
361361
let producer = self.producer.lock().expect("lock poisoned");
362362
if let Some(p) = producer.as_ref() {
363363
p.upgrade()
364-
.ok_or_else(|| OTelSdkError::AlreadyShutdown)?
364+
.ok_or(OTelSdkError::AlreadyShutdown)?
365365
.produce(rm)?;
366366
Ok(())
367367
} else {

opentelemetry-sdk/src/metrics/reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub trait MetricReader: fmt::Debug + Send + Sync + 'static {
4646
///
4747
/// After `shutdown` is called, calls to `collect` will perform no operation and
4848
/// instead will return an error indicating the shutdown state.
49-
fn shutdown_with_timeout(&self, timeout: Duration) -> OTelSdkResult;
49+
fn shutdown_with_timeout(&self, timeout: Duration) -> ;
5050

5151
/// shutdown with default timeout
5252
fn shutdown(&self) -> OTelSdkResult {

0 commit comments

Comments
 (0)