Skip to content

Commit 5fa0df6

Browse files
committed
AC-1271: Add rate limiting for payment information endpoint and mutation
1 parent a7465c5 commit 5fa0df6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/App/Backpressure/SlidingWindow/CacheRequestLogger.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,12 @@ public function getFor(ContextInterface $context, int $timeSlot): ?int
6262
if (empty($value)) {
6363
return null;
6464
}
65+
6566
return (int) $value;
6667
}
6768

6869
/**
69-
* Generate cache ID based on context.
70+
* Generate cache ID based on context
7071
*
7172
* @param ContextInterface $context
7273
* @param int $timeSlot

0 commit comments

Comments
 (0)