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

lolsob-rspec
Eugen Rochko 2018-12-26 19:15:43 +01:00 committed by GitHub
parent 5b350e4f93
commit e5ebd4df78
1 changed files with 1 additions and 0 deletions

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