File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
opentelemetry-sdk/src/metrics Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments