File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
aws_lambda_powertools/utilities/idempotency Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -201,10 +201,6 @@ def decorate(*args, **kwargs):
201201 f" Ensure this exists in your function's signature as well as the caller used it as a keyword argument" ,
202202 )
203203
204- durable_mode = None
205- if len (args ) >= 2 and hasattr (args [1 ], "state" ):
206- durable_mode = "REPLAY_MODE" if len (args [1 ].state .operations ) > 1 else "EXECUTION_MODE"
207-
208204 payload = kwargs .get (data_keyword_argument )
209205
210206 idempotency_handler = IdempotencyHandler (
@@ -218,6 +214,6 @@ def decorate(*args, **kwargs):
218214 function_kwargs = kwargs ,
219215 )
220216
221- return idempotency_handler .handle (durable_mode = durable_mode )
217+ return idempotency_handler .handle ()
222218
223219 return cast (AnyCallableT , decorate )
You can’t perform that action at this time.
0 commit comments