docs: update throttling

This commit is contained in:
Ilkka Seppälä committed 2024-05-22 15:17:05 +03:00
1 parent 16fbd26a42
commit 628ec1548c
3 files changed
+83 -63

No files matched your search

@@ -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()));
}
}