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

master
Eugen Rochko 6 years ago committed by GitHub
parent 8be0843467
commit 17cd91c777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/controllers/concerns/signature_verification.rb

@ -47,6 +47,7 @@ module SignatureVerification
.with_fallback { nil }
.with_threshold(1)
.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

Loading…
Cancel
Save