Skip to content

Commit b054fd8

Browse files
Apply suggestions from code review
Co-authored-by: Dan Davison <dan.davison@temporal.io>
1 parent 6de0139 commit b054fd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

polling/test_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ def __init__(self):
33
self.error_attempts = 5
44

55
async def get_service_result(self, input, attempt: int):
6-
print(f"Attempt {attempt}" f" of {self.error_attempts} to invoke service")
7-
if attempt % self.error_attempts == 0:
6+
print(f"Attempt {attempt} of {self.error_attempts} to invoke service")
7+
if attempt > self.error_attempts:
88
return f"{input.greeting}, {input.name}!"
99
raise Exception("service is down")

0 commit comments

Comments
 (0)