Fix comment on last_visited_days
This commit is contained in:
parent
94a0a588cf
commit
d5255410f5
|
@ -11,11 +11,10 @@ pub struct ActiveDomainRecord {
|
|||
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct UrlVisitedRecord {
|
||||
/// Number of minutes since the QuickPeep Epoch that this page was last raked at.
|
||||
/// We store minutes to give us 60× the range of times.
|
||||
/// We'd really rather stick with 32-bit ints to reduce the space storage requirements.
|
||||
/// We could *possibly* go for a u16 in the future and store number of days (179 years' range):
|
||||
/// sitemaps and feeds usually only tell you the date the page was last updated.
|
||||
/// Number of days since the QuickPeep Epoch that this page was last raked at.
|
||||
/// A u16 is fine here, giving 179 years worth of values. This allows compact encoding.
|
||||
/// We don't really care about a more granular timestamp: sitemaps and feeds usually only
|
||||
/// give the date of last update anyway.
|
||||
pub last_visited_days: u16,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue