Skip to content

Commit

Permalink
Tweak some source code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuya6502 committed Apr 16, 2024
1 parent dfbbe3f commit ccb285b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/sync_base/base_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2198,10 +2198,6 @@ where
// `Option<Instant>` to `Instant`.
Some((key, hash, true, _) | (key, hash, false, None)) => {
self.skip_updated_entry_wo(&key, hash, deqs);
// If the key is the caller key, set `more_to_evict` to `false`
// to make `run_pending_tasks` to return early. This will help
// that `schedule_write_op`, a caller in the call tree, to send
// the `WriteOp` to the write op channel.
more_to_evict = false;
continue;
}
Expand Down Expand Up @@ -2229,9 +2225,7 @@ where
Self::handle_remove(deqs, timer_wheel, entry, None, &mut eviction_state.counters);
} else {
self.skip_updated_entry_wo(&key, hash, deqs);
// if caller_key.map(|ck| ck == &key).unwrap_or_default() {
more_to_evict = false;
// }
}
}

Expand Down Expand Up @@ -2389,9 +2383,7 @@ where
evicted = evicted.saturating_add(weight as u64);
} else {
self.skip_updated_entry_ao(&key, hash, deq_name, ao_deq, wo_deq);
// if caller_key.map(|ck| ck == &key).unwrap_or_default() {
more_to_evict = false;
// }
}
}

Expand Down

0 comments on commit ccb285b

Please sign in to comment.