mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Optimize profile fetching and caching
This commit is contained in:
parent
d38b63f5a9
commit
ff61d97a1d
7 changed files with 31 additions and 24 deletions
|
|
@ -41,7 +41,7 @@ proc getPoolJson*(): JsonNode =
|
|||
let
|
||||
maxReqs =
|
||||
case api
|
||||
of Api.listMembers, Api.listBySlug, Api.list, Api.userRestId: 500
|
||||
of Api.listMembers, Api.listBySlug, Api.list, Api.userRestId, Api.userScreenName: 500
|
||||
of Api.timeline: 187
|
||||
else: 180
|
||||
reqs = maxReqs - token.apis[api].remaining
|
||||
|
|
|
|||
Loading…
Reference in a new issue