File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments