File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
opentelemetry-sdk/src/logs Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ impl LogProcessor for BatchLogProcessor {
310310 // This is a cost-efficient check as atomic load operations do not require exclusive access to cache line.
311311 // Perform atomic swap to `export_log_message_sent` ONLY when the atomic load operation above returns false.
312312 // Atomic swap/compare_exchange operations require exclusive access to cache line on most processor architectures.
313- // We could have used compare_exchange as well here, but it's more verbose than swap. Also, swap uses compare_exchange internally anyway.
313+ // We could have used compare_exchange as well here, but it's more verbose than swap.
314314 if !self . export_log_message_sent . swap ( true , Ordering :: Relaxed ) {
315315 match self . message_sender . try_send ( BatchMessage :: ExportLog (
316316 self . export_log_message_sent . clone ( ) ,
You can’t perform that action at this time.
0 commit comments