From 40656a2b7d35ddaaae06c4fb57b2378581d3c6f6 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 14 Aug 2019 15:17:20 -0400 Subject: [PATCH] Points in window --- lib/src/rate_limiting_window.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/rate_limiting_window.dart b/lib/src/rate_limiting_window.dart index 234c3ae1..1ac69f77 100644 --- a/lib/src/rate_limiting_window.dart +++ b/lib/src/rate_limiting_window.dart @@ -7,9 +7,9 @@ class RateLimitingWindow { /// The time at which the user's current window began. final DateTime start; - /// The number of requests the user has already sent within + /// The number of points the user has already consumed within /// the current window. - final int requestCount; + final int pointsConsumed; /// The maximum amount of points allowed within a single window. final int pointLimit; @@ -21,6 +21,6 @@ class RateLimitingWindow { /// The time at which the window will reset. final DateTime resetsAt; - RateLimitingWindow(this.user, this.start, this.requestCount, + RateLimitingWindow(this.user, this.start, this.pointsConsumed, {this.pointLimit, this.remainingPoints, this.resetsAt}); }