You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print(f"Received greeting from {caller_identity}: {payload}")
146
146
returnf"Hello, {caller_identity}!"
147
147
```
148
148
149
-
In addition to the payload, your handler will also receive `response_timeout_ms`, which informs you the maximum time available to return a response. If you are unable to respond in time, the call will result in an error on the caller's side.
149
+
In addition to the payload, your handler will also receive `response_timeout`, which informs you the maximum time available to return a response. If you are unable to respond in time, the call will result in an error on the caller's side.
150
150
151
151
#### Performing an RPC request
152
152
@@ -164,7 +164,7 @@ except Exception as e:
164
164
print(f"RPC call failed: {e}")
165
165
```
166
166
167
-
You may find it useful to adjust the `response_timeout_ms` parameter, which indicates the amount of time you will wait for a response. We recommend keeping this value as low as possible while still satisfying the constraints of your application.
167
+
You may find it useful to adjust the `response_timeout` parameter, which indicates the amount of time you will wait for a response. We recommend keeping this value as low as possible while still satisfying the constraints of your application.
f"[Math Genius] I guess {caller_identity} wants the square root of {number}. I've only got {response_timeout_ms/1000} seconds to respond but I think I can pull it off."
111
+
f"[Math Genius] I guess {caller_identity} wants the square root of {number}. I've only got {response_timeout} seconds to respond but I think I can pull it off."
0 commit comments