Skip to content

Commit fd85a75

Browse files
authored
Nit cleanup of method signature for async export (open-telemetry#2669)
1 parent aa43105 commit fd85a75

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/layer.rs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -263,17 +263,11 @@ mod tests {
263263
struct ReentrantLogExporter;
264264

265265
impl LogExporter for ReentrantLogExporter {
266-
#[allow(clippy::manual_async_fn)]
267-
fn export(
268-
&self,
269-
_batch: LogBatch<'_>,
270-
) -> impl std::future::Future<Output = OTelSdkResult> + Send {
271-
async {
272-
// This will cause a deadlock as the export itself creates a log
273-
// while still within the lock of the SimpleLogProcessor.
274-
warn!(name: "my-event-name", target: "reentrant", event_id = 20, user_name = "otel", user_email = "[email protected]");
275-
Ok(())
276-
}
266+
async fn export(&self, _batch: LogBatch<'_>) -> OTelSdkResult {
267+
// This will cause a deadlock as the export itself creates a log
268+
// while still within the lock of the SimpleLogProcessor.
269+
warn!(name: "my-event-name", target: "reentrant", event_id = 20, user_name = "otel", user_email = "[email protected]");
270+
Ok(())
277271
}
278272
}
279273

0 commit comments

Comments
 (0)