Fix signature verification stoplight triggering on non-timeout errors (#9617)

This commit is contained in:
Eugen Rochko 2018-12-26 19:15:43 +01:00 committed by GitHub
parent 8be0843467
commit 17cd91c777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,7 @@ module SignatureVerification
.with_fallback { nil } .with_fallback { nil }
.with_threshold(1) .with_threshold(1)
.with_cool_off_time(5.minutes.seconds) .with_cool_off_time(5.minutes.seconds)
.with_error_handler { |error, handle| error.is_a?(HTTP::Error) ? handle.call(error) : raise(error) }
account = account_stoplight.run account = account_stoplight.run