0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-03-15 05:12:10 +01:00
gitea/modules
Lunny Xiao ffc904b1e0 Sleep longer if request speed is over github limitation (#9335)
* Sleep longer if request speed is over github limitation

* improve code

* remove unused code

* fix lint

* Use github's rate limit remain value to determine how long to sleep

* Save reset time when finished github api request

* fix bug

* fix lint

* Add context.Context for sleep

* fix test

* improve code

* fix bug and lint

* fix import order
2019-12-16 23:16:54 -05:00
..
auth
avatar
base
cache
charset
context Add /milestones endpoint (#8733) 2019-12-15 14:20:08 +00:00
convert
cron
generate
git Change target branch for pull request (#6488) 2019-12-16 14:20:25 +08:00
gitgraph
graceful Fix missed change to GetManager() (#9361) 2019-12-15 13:15:17 +00:00
highlight
httplib
indexer
lfs
log
markup
metrics
migrations Sleep longer if request speed is over github limitation (#9335) 2019-12-16 23:16:54 -05:00
notification Change target branch for pull request (#6488) 2019-12-16 14:20:25 +08:00
options
password
pprof
private AuthorizedKeysCommand should not query db directly (#9371) 2019-12-16 20:49:07 -05:00
process
public
recaptcha
references
repofiles Refactor comment (#9330) 2019-12-15 16:57:34 -05:00
repository
search
secret
session
setting Add /milestones endpoint (#8733) 2019-12-15 14:20:08 +00:00
ssh
structs Change target branch for pull request (#6488) 2019-12-16 14:20:25 +08:00
sync
task Sleep longer if request speed is over github limitation (#9335) 2019-12-16 23:16:54 -05:00
templates
test
timeutil
upload
user
util
validation
webhook Remove text from action-only webhooks (#9377) 2019-12-17 08:28:19 +08:00