Update user information if needed

When a remote is displayed, if it has not been updated since at least 24 hours, newer informations are fetched.

Fixes #135
This commit is contained in:
Bat
2018-09-03 19:53:20 +01:00
parent 3373bb66cd
commit 32a4949f25
6 changed files with 52 additions and 7 deletions
+3
View File
@@ -29,6 +29,7 @@ extern crate validator_derive;
extern crate webfinger;
extern crate workerpool;
use rocket::State;
use rocket_contrib::Template;
use rocket_csrf::CsrfFairingBuilder;
use workerpool::{Pool, thunk::ThunkWorker};
@@ -37,6 +38,8 @@ mod inbox;
mod setup;
mod routes;
type Worker<'a> = State<'a, Pool<ThunkWorker<()>>>;
fn main() {
let pool = setup::check();
rocket::ignite()