Skip to content

Commit 0899f68

Browse files
Removing things
1 parent 12af90e commit 0899f68

File tree

1 file changed

+0
-5
lines changed
  • aws_lambda_powertools/utilities/idempotency/persistence

1 file changed

+0
-5
lines changed

aws_lambda_powertools/utilities/idempotency/persistence/base.py

-5
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,6 @@ def _get_expiry_timestamp(self) -> int:
270270
unix timestamp of expiry date for idempotency record
271271
272272
"""
273-
# removed for now, seems not being used in redis
274-
""" if self.backend == "redis":
275-
return self.expires_after_seconds
276-
else: """
277-
278273
now = datetime.datetime.now()
279274
period = datetime.timedelta(seconds=self.expires_after_seconds)
280275
return int((now + period).timestamp())

0 commit comments

Comments
 (0)