Skip to content

Commit a42781c

Browse files
Fix ctx.time()
1 parent 7fa75d0 commit a42781c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/restate/server_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ def uuid(self) -> UUID:
534534
return UUID(int=self.random_instance.getrandbits(128), version=4)
535535

536536
def time(self) -> RestateDurableFuture[float]:
537-
return self.run_typed("timestamp", time.time)
537+
return self.run_typed("timestamp", lambda: time.time())
538538

539539
# pylint: disable=R0914
540540
async def create_run_coroutine(self,

0 commit comments

Comments
 (0)