projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Rename and expose message-specific `NextHop`
[rust-lightning]
/
lightning
/
src
/
util
/
atomic_counter.rs
diff --git
a/lightning/src/util/atomic_counter.rs
b/lightning/src/util/atomic_counter.rs
index 81cc1f496c36472d407964fc3a47ef07511fd239..d2e01411313d3c18c6dc7720c7cf68b0d0866e6a 100644
(file)
--- a/
lightning/src/util/atomic_counter.rs
+++ b/
lightning/src/util/atomic_counter.rs
@@
-5,6
+5,7
@@
compile_error!("We need at least 32-bit pointers for atomic counter (and to have
use core::sync::atomic::{AtomicUsize, Ordering};
+#[derive(Debug)]
pub(crate) struct AtomicCounter {
// Usize needs to be at least 32 bits to avoid overflowing both low and high. If usize is 64
// bits we will never realistically count into high: