docs: update throttling

This commit is contained in:
Ilkka Seppälä
2024-05-22 15:17:05 +03:00
parent 16fbd26a42
commit 628ec1548c
3 changed files with 83 additions and 63 deletions
@@ -30,11 +30,10 @@ import lombok.Getter;
/**
* BarCustomer is a tenant with a name and a number of allowed calls per second.
*/
@Getter
public class BarCustomer {
@Getter
private final String name;
@Getter
private final int allowedCallsPerSecond;
/**
@@ -36,8 +36,6 @@ class BarCustomerTest {
@Test
void constructorTest() {
assertThrows(InvalidParameterException.class, () -> {
new BarCustomer("sirBrave", -1, new CallsCount());
});
assertThrows(InvalidParameterException.class, () -> new BarCustomer("sirBrave", -1, new CallsCount()));
}
}