mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 09:09:17 +00:00
Update outdated comment
This commit is contained in:
@@ -218,8 +218,8 @@ impl Counter for UnsafeCellCounter {
|
|||||||
// timestamp), which is what actually runs per packet in `peer_manager`.
|
// timestamp), which is what actually runs per packet in `peer_manager`.
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
// The real production `CounterHandle`. `CounterHandle::add` does a sharded
|
// The real production `CounterHandle`. `CounterHandle::add` does a single
|
||||||
// `fetch_add` then a lock-free atomic-millis `touch`.
|
// `AtomicU64::fetch_add` then a lock-free fastant `touch`.
|
||||||
impl Counter for CounterHandle {
|
impl Counter for CounterHandle {
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn add(&self, delta: u64) {
|
fn add(&self, delta: u64) {
|
||||||
|
|||||||
Reference in New Issue
Block a user