]> git.bitcoin.ninja Git - rust-lightning/commit
Move the two-AtomicUsize counter in peer_handler to a util struct
authorMatt Corallo <git@bluematt.me>
Fri, 8 Oct 2021 22:54:32 +0000 (22:54 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 18 Oct 2021 22:04:56 +0000 (22:04 +0000)
commitdf8bde9b2efdd12dcb5a4b8d5d5d2507af402598
treeb213d9a70a19dd5af0f721b73ad0af8488a3374f
parente9f1934e5b3cd76bdfb92395c018a564d26c80b3
Move the two-AtomicUsize counter in peer_handler to a util struct

We also take this opportunity to drop byte_utils::le64_to_array, as
our MSRV now supports the native to_le_bytes() call.
lightning/src/ln/peer_handler.rs
lightning/src/util/atomic_counter.rs [new file with mode: 0644]
lightning/src/util/byte_utils.rs
lightning/src/util/chacha20poly1305rfc.rs
lightning/src/util/mod.rs