eguneraketa
This commit is contained in:
+2
-1
@@ -101,7 +101,8 @@ Then try to restart Plume.
|
||||
"#
|
||||
)
|
||||
}
|
||||
let workpool = ScheduledThreadPool::with_name("worker {}", num_cpus::get());
|
||||
//let workpool = ScheduledThreadPool::with_name("worker {}", num_cpus::get());
|
||||
let workpool = ScheduledThreadPool::new(num_cpus::get());
|
||||
// we want a fast exit here, so
|
||||
let searcher = Arc::new(UnmanagedSearcher::open_or_recreate(
|
||||
&CONFIG.search_index,
|
||||
|
||||
+3
-3
@@ -143,7 +143,7 @@ pub fn build_atom_feed(
|
||||
FeedBuilder::default()
|
||||
.title(title)
|
||||
.id(uri)
|
||||
.updated(DateTime::<Utc>::from_utc(*updated, Utc))
|
||||
.updated(DateTime::<Utc>::from_naive_utc_and_offset(*updated, Utc))
|
||||
.entries(
|
||||
entries
|
||||
.into_iter()
|
||||
@@ -182,9 +182,9 @@ fn post_to_atom(post: Post, conn: &Connection) -> Entry {
|
||||
// Using RFC 4287 format, see https://tools.ietf.org/html/rfc4287#section-3.3 for dates
|
||||
// eg: 2003-12-13T18:30:02Z (Z is here because there is no timezone support with the NaiveDateTime crate)
|
||||
.published(Some(
|
||||
DateTime::<Utc>::from_utc(post.creation_date, Utc).into(),
|
||||
DateTime::<Utc>::from_naive_utc_and_offset(post.creation_date, Utc).into(),
|
||||
))
|
||||
.updated(DateTime::<Utc>::from_utc(post.creation_date, Utc))
|
||||
.updated(DateTime::<Utc>::from_naive_utc_and_offset(post.creation_date, Utc))
|
||||
.id(post.ap_url.clone())
|
||||
.links(vec![LinkBuilder::default().href(post.ap_url).build()])
|
||||
.build()
|
||||
|
||||
Reference in New Issue
Block a user