From 52da4d79a11f1f2bcd8e84e0e5cd7667fee3a353 Mon Sep 17 00:00:00 2001 From: Oskar Eichler Date: Thu, 27 Aug 2026 19:31:21 +0300 Subject: [PATCH] Advance the pipeline error chain for every failed command --- lib/redis_client/connection_mixin.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/redis_client/connection_mixin.rb b/lib/redis_client/connection_mixin.rb index 3dc2275..70a0155 100644 --- a/lib/redis_client/connection_mixin.rb +++ b/lib/redis_client/connection_mixin.rb @@ -71,7 +71,8 @@ def call_pipelined(commands, timeouts, exception: true) result._set_retry_attempt(@retry_attempt) last_error&._set_next_error(result) - first_error ||= last_error = result + first_error ||= result + last_error = result end results[index] = result