Skip to content

Commit

Permalink
fix(python-runtime): wrong casting in lambda context method
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Holík committed Apr 2, 2024
1 parent d67d9c9 commit b93bc3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sst/support/python-runtime/runtime.py
Expand Up @@ -35,7 +35,7 @@ def __init__(self, invoked_function_arn, aws_request_id, deadline_ms, identity,
self.log_stream_name = log_stream_name

def get_remaining_time_in_millis(self):
return int(max(self.deadline_ms - int(round(time() * 1000)), 0))
return int(max(int(self.deadline_ms) - int(round(time() * 1000)), 0))

def log(self):
return sys.stdout.write
Expand Down

0 comments on commit b93bc3c

Please sign in to comment.