1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-09-30 05:32:24 +02:00
gitea/routers/api/v1/repo
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
..
blob.go
branch.go
collaborators.go
commits.go
file.go
fork.go
git_hook.go
git_ref.go
hook_test.go
hook.go
issue_comment.go
issue_label.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go
issue.go
key.go
label.go
main_test.go
milestone.go
pull.go
release_attachment.go
release.go
repo_test.go
repo.go
star.go
status.go
subscriber.go
tag.go
topic.go
tree.go