Skip to content

Commit 1e54d52

Browse files
committed
Update state example
1 parent 8ba1a33 commit 1e54d52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/joe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ def hi(ctx: Context) -> Value:
3737

3838
@actor.action("setLanguage")
3939
def set_language(request: Request, ctx: Context) -> Value:
40+
print("Request -> " + str(request))
4041
print("Current State -> " + str(ctx.state))
4142

4243
reply = Reply()
4344
reply.response = "erlang"
4445
new_state = State()
45-
new_state.languages.append("python")
46+
new_state.languages.append("erlang")
4647
return Value().response(reply).state(new_state).reply()

0 commit comments

Comments
 (0)