aboutsummaryrefslogtreecommitdiff
path: root/tests/sets.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-08-29 15:59:16 +0200
committerLudovic Courtès <ludo@gnu.org>2019-09-02 15:25:01 +0200
commitba1c1853a79a5930ca7db7a6b368859f805df98d (patch)
tree18b06a520f1038e07053bd79bbbf3c473246778e /tests/sets.scm
parent9323ab550f3bcb75fcaefbb20847595974702d5b (diff)
downloadpatches-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/sets.scm')
0 files changed, 0 insertions, 0 deletions