Skip to content

Commit 7c52251

Browse files
Fix ctx.time() (#138)
1 parent ee3cf7a commit 7c52251

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/restate/server_context.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,8 @@ 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+
# pylint: disable=W0108
538+
return self.run_typed("timestamp", lambda: time.time())
538539

539540
# pylint: disable=R0914
540541
async def create_run_coroutine(self,

0 commit comments

Comments
 (0)