Track pending token requests to limit concurrency

This commit is contained in:
Zed
2022-01-05 23:38:46 +01:00
parent f9c9b0d3a4
commit 34964f9e56
3 changed files with 32 additions and 19 deletions

View File

@@ -26,6 +26,7 @@ type
tok*: string
init*: Time
lastUse*: Time
pending*: int
apis*: Table[Api, RateLimit]
Error* = enum