We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41fa47b commit 83b0f8bCopy full SHA for 83b0f8b
src/auth.nim
@@ -6,7 +6,7 @@ import experimental/parser/session
6
# max requests at a time per session to avoid race conditions
7
const
8
maxConcurrentReqs = 2
9
- dayInSeconds = 24 * 60 * 60
+ hourInSeconds = 60 * 60
10
apiMaxReqs: Table[Api, int] = {
11
Api.search: 50,
12
Api.tweetDetail: 500,
@@ -127,7 +127,7 @@ proc isLimited(session: Session; api: Api): bool =
127
return true
128
129
if session.limited and api != Api.userTweets:
130
- if (epochTime().int - session.limitedAt) > dayInSeconds:
+ if (epochTime().int - session.limitedAt) > hourInSeconds:
131
session.limited = false
132
log "resetting limit: ", session.id
133
return false
0 commit comments