From 00018804e332c6be53ac8d4bfac62c7752b6be7b Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 12 Sep 2022 10:48:59 -0500 Subject: [PATCH] The secondary block should be longer than the main lock... --- lib/low_balance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/low_balance.rb b/lib/low_balance.rb index 13dd89d..dd4cdef 100644 --- a/lib/low_balance.rb +++ b/lib/low_balance.rb @@ -86,7 +86,7 @@ class LowBalance def failed(e) @method && REDIS.setex( "jmp_auto_top_up_block-#{@method.unique_number_identifier}", - 60 * 60 * 24 * 7, + 60 * 60 * 24 * 30, Time.now ) @message.body = -- 2.45.2