Skip to content

Commit d1f6b07

Browse files
committed
perf(client): increase json cache TTL to 120s and size to 1000
1 parent 2a17d0d commit d1f6b07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ fn request(method: &'static Method, path: String, redirect: bool, quarantine: bo
354354
}
355355

356356
/// Make a request to a Reddit API and parse the JSON response
357-
#[cached(size = 500, time = 30, result = true)]
357+
#[cached(size = 1000, time = 120, result = true)]
358358
pub async fn json(path: String, quarantine: bool) -> Result<Value, String> {
359359
// Closure to quickly build errors
360360
let err = |msg: &str, e: String, path: String| -> Result<Value, String> {

0 commit comments

Comments
 (0)