Remove redundant branch from retry-on-missing-store-item
I think #:unwind-for-type prevents this condition.
This commit is contained in:
parent
97a01853b8
commit
f5614dd75d
1 changed files with 8 additions and 11 deletions
|
|
@ -123,17 +123,14 @@
|
||||||
(define* (retry-on-missing-store-item thunk #:key on-exception)
|
(define* (retry-on-missing-store-item thunk #:key on-exception)
|
||||||
(with-exception-handler
|
(with-exception-handler
|
||||||
(lambda (exn)
|
(lambda (exn)
|
||||||
(if (missing-store-item-error? exn)
|
(simple-format (current-error-port)
|
||||||
(begin
|
"missing store item ~A, retrying ~A\n"
|
||||||
(simple-format (current-error-port)
|
(missing-store-item-error-item exn)
|
||||||
"missing store item ~A, retrying ~A\n"
|
thunk)
|
||||||
(missing-store-item-error-item exn)
|
(when on-exception (on-exception))
|
||||||
thunk)
|
(retry-on-missing-store-item
|
||||||
(when on-exception (on-exception))
|
thunk
|
||||||
(retry-on-missing-store-item
|
#:on-exception on-exception))
|
||||||
thunk
|
|
||||||
#:on-exception on-exception))
|
|
||||||
(raise-exception exn)))
|
|
||||||
thunk
|
thunk
|
||||||
#:unwind? #t
|
#:unwind? #t
|
||||||
#:unwind-for-type &missing-store-item-error))
|
#:unwind-for-type &missing-store-item-error))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue