Skip to content

Commit

Permalink
Fix ratelimit exception
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Oct 25, 2024
1 parent 5fb801b commit 37437fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class DistributedRateLimiter(proxyManager: ProxyManager<String>) : RequestRateLi
.capacity(limit.remaining.value)
.refillIntervallyAligned(
limit.total.value,
(Clock.System.now() - reset.value).toJavaDuration(),
(reset.value - Clock.System.now()).coerceAtMost(Duration.ZERO).toJavaDuration(),
start.toJavaInstant()
)
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ coroutines = "1.9.0"
serialization = "1.7.3"
ktor = "3.0.0"
kord = "feature-user-apps-20241022.210712-8"
api = "3.37.12"
api = "3.37.13"
ksp = "2.0.21-1.0.25"
lavakord = "7.1.0"

Expand Down

0 comments on commit 37437fe

Please sign in to comment.