mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-20 18:43:57 +00:00
Updated dependencies to use u2f crate directly, and some style changes
This commit is contained in:
parent
c8af62ed48
commit
5f49ecd7f3
7 changed files with 110 additions and 114 deletions
|
@ -68,12 +68,12 @@ struct Cached<R>(R, &'static str);
|
|||
impl<R> Cached<R> {
|
||||
fn long(r: R) -> Cached<R> {
|
||||
// 7 days
|
||||
Cached(r, "public, max-age=604800".into())
|
||||
Cached(r, "public, max-age=604800")
|
||||
}
|
||||
|
||||
fn short(r: R) -> Cached<R> {
|
||||
// 10 minutes
|
||||
Cached(r, "public, max-age=600".into())
|
||||
Cached(r, "public, max-age=600")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue