mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-08 07:37:45 +00:00
Experiment with caching
This commit is contained in:
parent
baf7272cfd
commit
077c222a4e
7 changed files with 108 additions and 8 deletions
|
@ -54,7 +54,7 @@ async fn user(name: &str) -> Result<User, String> {
|
|||
let path: String = format!("/user/{}/about.json", name);
|
||||
|
||||
// Send a request to the url
|
||||
match request(&path).await {
|
||||
match request(path).await {
|
||||
// If success, receive JSON in response
|
||||
Ok(res) => {
|
||||
// Grab creation date as unix timestamp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue