Skip to content

Commit

Permalink
fail open more
Browse files Browse the repository at this point in the history
  • Loading branch information
dpep committed Feb 6, 2024
1 parent 9bd71ae commit b53cbb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/berater/middleware/fail_open.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
module Berater
module Middleware
class FailOpen
ERRORS = Set[
ERRORS = Set.new [
Redis::BaseConnectionError,
SystemCallError, # openssl
Timeout::Error, # connection pool
]
(OpenSSL::OpenSSLError if defined?(OpenSSL)),
].compact

def initialize(errors: nil, on_fail: nil)
@errors = errors || ERRORS
Expand Down

0 comments on commit b53cbb8

Please sign in to comment.