From a20cccefa8c434fee19be0c8e3fb12b56287492b Mon Sep 17 00:00:00 2001 From: dusk Date: Sun, 10 Nov 2024 05:06:33 +0900 Subject: [PATCH] feat(guestbook): renew request token every 30 sec instead of 10 sec for posting --- .../src/main/scala/systems/gaze/guestbook/GuestbookRoutes.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guestbook/src/main/scala/systems/gaze/guestbook/GuestbookRoutes.scala b/guestbook/src/main/scala/systems/gaze/guestbook/GuestbookRoutes.scala index 2a11c59..7545c78 100644 --- a/guestbook/src/main/scala/systems/gaze/guestbook/GuestbookRoutes.scala +++ b/guestbook/src/main/scala/systems/gaze/guestbook/GuestbookRoutes.scala @@ -55,4 +55,4 @@ class GuestbookRoutes( } yield resp } throttle(30, 2.seconds)(getEntries) - <+> throttle(5, 10.seconds)(putEntry) + <+> throttle(5, 30.seconds)(putEntry)