Skip to content

Commit 7291998

Browse files
committed
Update comments
1 parent 177abcf commit 7291998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentelemetry-sdk/src/logs/log_processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(),

0 commit comments

Comments
 (0)