Skip to content

Commit

Permalink
Update entry's timestamps immediately after insertion
Browse files Browse the repository at this point in the history
Fix compile errors with `KeyDate<K>::is_dirty` method.
  • Loading branch information
tatsuya6502 committed Jun 26, 2022
1 parent 518c809 commit 029e168
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/concurrent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ impl<K> KeyDate<K> {
&self.key
}

// #[cfg(any(feature = "sync", feature = "future"))]
pub(crate) fn last_modified(&self) -> Option<Instant> {
self.entry_info.last_modified()
}

#[cfg(any(feature = "sync", feature = "future"))]
// #[cfg(any(feature = "sync", feature = "future"))]
pub(crate) fn is_dirty(&self) -> bool {
self.entry_info.is_dirty()
}
Expand Down

0 comments on commit 029e168

Please sign in to comment.