From a3f2aa9b4c95428ad877c37be11e59120ca5e204 Mon Sep 17 00:00:00 2001 From: Nick Amorim Date: Mon, 20 Jan 2025 09:29:02 -0500 Subject: [PATCH] remove redundant rescuing of ServerError --- lib/dalli/client.rb | 2 +- lib/dalli/protocol/base.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dalli/client.rb b/lib/dalli/client.rb index 400875ba..a6133d8c 100644 --- a/lib/dalli/client.rb +++ b/lib/dalli/client.rb @@ -454,7 +454,7 @@ def pipelined_getter end def pipelined_setter - PipelinedSetter.new(ring, @key_manager) + PipelinedSetter.new(ring) end end end diff --git a/lib/dalli/protocol/base.rb b/lib/dalli/protocol/base.rb index a800a504..2fb0fc36 100644 --- a/lib/dalli/protocol/base.rb +++ b/lib/dalli/protocol/base.rb @@ -42,7 +42,7 @@ def request(opkey, *args) rescue Dalli::MarshalError => e log_marshal_err(args.first, e) raise - rescue Dalli::DalliError, Dalli::ServerError + rescue Dalli::DalliError raise rescue StandardError => e log_unexpected_err(e)