File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
opentelemetry-sdk/src/export/logs Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,8 @@ pub trait LogExporter: Send + Sync + Debug {
7979 /// A `LogResult<()>`, which is a result type indicating either a successful export (with
8080 /// `Ok(())`) or an error (`Err(LogError)`) if the export operation failed.
8181 ///
82- fn export (
83- & self ,
84- batch : LogBatch < ' _ > ,
85- ) -> impl std:: future:: Future < Output = ExportResult > + Send ;
82+ fn export ( & self , batch : LogBatch < ' _ > )
83+ -> impl std:: future:: Future < Output = ExportResult > + Send ;
8684
8785 /// Shuts down the exporter. This function is idempotent; calling it
8886 /// more than once has no additional effect.
Original file line number Diff line number Diff line change @@ -23,11 +23,8 @@ mod throughput;
2323struct MockLogExporter ;
2424
2525impl LogExporter for MockLogExporter {
26- fn export (
27- & self ,
28- _batch : LogBatch < ' _ > ,
29- ) -> impl std:: future:: Future < Output = LogResult < ( ) > > + Send {
30- async { Ok ( ( ) ) }
26+ async fn export ( & self , _batch : LogBatch < ' _ > ) -> LogResult < ( ) > {
27+ Ok ( ( ) )
3128 }
3229}
3330
You can’t perform that action at this time.
0 commit comments