mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-05-26 12:44:03 +00:00
partially revert dc18f89c0b for now
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -443,7 +443,9 @@ pub(crate) fn has_cached_override(&self, name: &str) -> bool {
|
||||
impl CachedDest {
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub fn valid(&self) -> bool { self.expire > SystemTime::now() }
|
||||
pub fn valid(&self) -> bool { true }
|
||||
|
||||
//pub fn valid(&self) -> bool { self.expire > SystemTime::now() }
|
||||
|
||||
#[must_use]
|
||||
pub(crate) fn default_expire() -> SystemTime { rand::timepoint_secs(60 * 60 * 18..60 * 60 * 36) }
|
||||
@@ -452,7 +454,9 @@ pub(crate) fn default_expire() -> SystemTime { rand::timepoint_secs(60 * 60 * 18
|
||||
impl CachedOverride {
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub fn valid(&self) -> bool { self.expire > SystemTime::now() }
|
||||
pub fn valid(&self) -> bool { true }
|
||||
|
||||
//pub fn valid(&self) -> bool { self.expire > SystemTime::now() }
|
||||
|
||||
#[must_use]
|
||||
pub(crate) fn default_expire() -> SystemTime { rand::timepoint_secs(60 * 60 * 6..60 * 60 * 12) }
|
||||
|
||||
Reference in New Issue
Block a user