Skip to content

Commit 6b684e2

Browse files
authored
Nit cleanup of method signature for async export (open-telemetry#2669)
1 parent 68fe397 commit 6b684e2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

logs.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ mod throughput;
2424
struct MockLogExporter;
2525

2626
impl LogExporter for MockLogExporter {
27-
fn export(
28-
&self,
29-
_batch: LogBatch<'_>,
30-
) -> impl std::future::Future<Output = OTelSdkResult> + Send {
31-
async { Ok(()) }
27+
async fn export(&self, _batch: LogBatch<'_>) -> OTelSdkResult {
28+
Ok(())
3229
}
3330
}
3431

0 commit comments

Comments
 (0)