aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/client.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix some commentsdockercui2024-04-241-1/+1
| | | | Signed-off-by: dockercui <dockercui@aliyun.com>
* [DATALAD RUNCMD] Run codespell -wYaroslav Halchenko2023-01-231-1/+1
| | | | | | | | | | | | | | === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
* github: sanitize rate limit waiting timeMichael Muré2022-11-151-2/+11
| | | | In particular, for the case of when the local clock is wrong, but also if the returned value is bogus.
* github: fix rate limitingMichael Muré2022-11-151-1/+2
| | | | It seems like the error message that github return changed.
* github: fix data race when closing event channelMichael Muré2022-06-051-59/+47
| | | | | | | | | | I believe the issue was twofold: When done importing, the calling context is likely still valid, so if the output channel is not read enough and reach capacity, some event producer down the line can be blocked trying to send in that channel. When closing it, this send is still trying to proceed, which is illegal in go. In rateLimitHandlerClient, there was a need to 2 different type of output channel: core.ExportResult and ImportEvent. To do so, the previous code was using a single channel type RateLimitingEvent and a series of goroutines to read/cast/send to the final channel. This could result in more async goroutine being stuck trying to send in an at-capacity channel. Instead, the code now use a simple synchronous callback to directly push to the final output channel. No concurrency needed anymore and the code is simpler. Any of those fixes could have resolved the data race, but both fixes is more correct.
* feature: Github bridge mutation rate limit (#694)rng-dynamics2021-09-141-0/+188
Unified handling of rate limiting of github graphql api