File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ struct NoopExporter {
3434
3535#[ async_trait]
3636impl LogExporter for NoopExporter {
37- async fn export ( & mut self , _: LogBatch < ' _ > ) -> LogResult < ( ) > {
37+ async fn export ( & self , _: LogBatch < ' _ > ) -> LogResult < ( ) > {
3838 LogResult :: Ok ( ( ) )
3939 }
4040
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ mod tests {
247247
248248 #[ async_trait]
249249 impl LogExporter for ReentrantLogExporter {
250- async fn export ( & mut self , _batch : LogBatch < ' _ > ) -> LogResult < ( ) > {
250+ async fn export ( & self , _batch : LogBatch < ' _ > ) -> LogResult < ( ) > {
251251 // This will cause a deadlock as the export itself creates a log
252252 // while still within the lock of the SimpleLogProcessor.
253253 warn ! ( name
: "my-event-name" , target
: "reentrant" , event_id =
20 , user_name =
"otel" , user_email =
"[email protected] " ) ;
You can’t perform that action at this time.
0 commit comments