Improve searching

This commit is contained in:
aditya.chandel
2024-12-13 16:05:04 -07:00
parent 1e9249b257
commit 033fc95373
5 changed files with 26 additions and 8 deletions
@@ -50,7 +50,7 @@ public class BookController {
@GetMapping("/{bookId}/cover")
public ResponseEntity<Resource> getBookCover(@PathVariable long bookId) {
Random random = new Random();
int delay = 250 + random.nextInt(750);
int delay = 50 + random.nextInt(250);
try {
Thread.sleep(delay);
} catch (InterruptedException e) {