mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-08 15:47:48 +00:00
Lower number of cached items
This commit is contained in:
parent
8f913e696c
commit
acd2cff747
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ pub async fn error(msg: String) -> HttpResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make a request to a Reddit API and parse the JSON response
|
// Make a request to a Reddit API and parse the JSON response
|
||||||
#[cached(size=1000,time=60, result = true)]
|
#[cached(size=100,time=60, result = true)]
|
||||||
pub async fn request(path: String) -> Result<Value, String> {
|
pub async fn request(path: String) -> Result<Value, String> {
|
||||||
let url = format!("https://www.reddit.com{}", path);
|
let url = format!("https://www.reddit.com{}", path);
|
||||||
let user_agent = format!("web:libreddit:{}", env!("CARGO_PKG_VERSION"));
|
let user_agent = format!("web:libreddit:{}", env!("CARGO_PKG_VERSION"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue