Skip to content

Commit f24e70b

Browse files
committed
apply feedback
1 parent 848272d commit f24e70b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokio/src/runtime/io/scheduled_io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ impl ScheduledIo {
222222
let new_tick = match tick {
223223
Tick::Set => {
224224
let current = TICK.unpack(current);
225-
current.wrapping_add(1) % TICK.max_value()
225+
current.wrapping_add(1) % TICK.max_value() + 1
226226
}
227227
Tick::Clear(t) => {
228228
if TICK.unpack(current) as u8 != t {

0 commit comments

Comments
 (0)