Skip to content

Commit 5bd94e9

Browse files
committed
perf(client): increase json cache size from 100 to 500
1 parent 362bca8 commit 5bd94e9

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
@@ -352,7 +352,7 @@ fn request(method: &'static Method, path: String, redirect: bool, quarantine: bo
352352
}
353353

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

0 commit comments

Comments
 (0)