Skip to content

Commit 3259c8f

Browse files
committed
timer wheel
1 parent 2fe8b0d commit 3259c8f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["algorithm-macro"]
33

44
[package]
55
name = "algorithm"
6-
version = "0.1.15"
6+
version = "0.1.16"
77
edition = "2021"
88
authors = ["tickbh <[email protected]>"]
99
description = "about algorithm data structure, now has ttl with lru/lru-k/lfu/arc and slab/rbtree/roaring_bitmap/timer_wheelss, 关于算法常用的数据结构"

src/timer/timer_wheel.rs

-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ impl<T: Timer> TimerWheel<T> {
417417
while !wheel.is_null() {
418418
unsafe {
419419
(offset, remainder) = (*wheel).update_index(offset, remainder, &mut result);
420-
// println!("offset = {offset} remainder = {remainder}, wheel = {}", (*wheel).name);
421420
if offset == 0 {
422421
break;
423422
}

0 commit comments

Comments
 (0)