Add missing limitedAt assignment
This commit is contained in:
parent
3d8858f0d8
commit
e8b5cbef7b
|
@ -137,6 +137,7 @@ proc fetch*(url: Uri; api: Api): Future[JsonNode] {.async.} =
|
|||
raise rateLimitError()
|
||||
elif errors in {rateLimited}:
|
||||
account.apis[api].limited = true
|
||||
account.apis[api].limitedAt = epochTime().int
|
||||
echo "rate limited, api: ", $api, ", reqs left: ", account.apis[api].remaining, ", id: ", account.id
|
||||
|
||||
proc fetchRaw*(url: Uri; api: Api): Future[string] {.async.} =
|
||||
|
|
Loading…
Reference in New Issue