diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-08-29 15:59:16 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-09-02 15:25:01 +0200 |
commit | ba1c1853a79a5930ca7db7a6b368859f805df98d (patch) | |
tree | 18b06a520f1038e07053bd79bbbf3c473246778e /tests/discovery.scm | |
parent | 9323ab550f3bcb75fcaefbb20847595974702d5b (diff) | |
download | patches-ba1c1853a79a5930ca7db7a6b368859f805df98d.tar patches-ba1c1853a79a5930ca7db7a6b368859f805df98d.tar.gz |
swh: Add hooks for rate limiting handling.
* guix/swh.scm (%allow-request?, %save-rate-limit-reset-time)
(%general-rate-limit-reset-time): New variables.
(request-rate-limit-reached?, update-rate-limit-reset-time!): New
procedures.
(call): Call '%allow-request?'. Change 'swh-error' protocol to pass
METHOD in addition to URL.
* tests/swh.scm ("rate limit reached")
("%allow-request? and request-rate-limit-reached?"): New tests.
Diffstat (limited to 'tests/discovery.scm')
0 files changed, 0 insertions, 0 deletions