[bisq-network/bisq] Prevent excessive api calls (#4966)
Stan
notifications at github.com
Tue Dec 22 20:28:08 CET 2020
@ghubstan commented on this pull request.
> +import java.util.concurrent.TimeUnit;
+
+import lombok.Getter;
+import lombok.extern.slf4j.Slf4j;
+
+import javax.annotation.Nullable;
+
+import static java.lang.String.format;
+
+ at Slf4j
+public final class GrpcCallRateMeter {
+
+ @Getter
+ private final long allowedCallsPerTimeUnit;
+ @Getter
+ private final TimeUnit timeUnit;
Fixed in commit 01546ad. The rate meter can still use a DAYS and HOURS TimeUnit, though I supposed most method rate meters will restrict calls on a per second basis.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4966#discussion_r547466741
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20201222/b77ae5c3/attachment.htm>
More information about the bisq-github
mailing list