Skip to content

Commit

Permalink
timer wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
tickbh committed Dec 10, 2024
1 parent 2fe8b0d commit 3259c8f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["algorithm-macro"]

[package]
name = "algorithm"
version = "0.1.15"
version = "0.1.16"
edition = "2021"
authors = ["tickbh <[email protected]>"]
description = "about algorithm data structure, now has ttl with lru/lru-k/lfu/arc and slab/rbtree/roaring_bitmap/timer_wheelss, 关于算法常用的数据结构"
Expand Down
1 change: 0 additions & 1 deletion src/timer/timer_wheel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ impl<T: Timer> TimerWheel<T> {
while !wheel.is_null() {
unsafe {
(offset, remainder) = (*wheel).update_index(offset, remainder, &mut result);
// println!("offset = {offset} remainder = {remainder}, wheel = {}", (*wheel).name);
if offset == 0 {
break;
}
Expand Down

0 comments on commit 3259c8f

Please sign in to comment.