lib/lamby/handler.rb in lamby_updated-5.2.2 vs lib/lamby/handler.rb in lamby_updated-5.2.4

- old
+ new

@@ -80,13 +80,11 @@ { statusCode: status, headers: headers, body: body }.merge(rack.response(self)) end - def call_app - retries ||= 0 if Debug.on?(@event) Debug.call @event, @context, rack.env elsif rack? @status, @headers, @body = @app.call rack.env set_cookies @@ -99,17 +97,9 @@ LambdaConsole.handle(@event) elsif event_bridge? Lamby.config.event_bridge_handler.call @event, @context else [404, {}, StringIO.new('')] - end - rescue ActiveRecord::ConnectionNotEstablished => e - retries += 1 - if retries < 3 - sleep(2 ** retries) # Exponential backoff - retry - else - raise e end end def content_encoding_compressed?(hdrs) content_encoding_header = hdrs['Content-Encoding'] || ''