This commit is contained in:
2026-05-19 14:11:23 +09:00
parent e158706937
commit e5dcce341e
5 changed files with 193 additions and 19 deletions
+9 -3
View File
@@ -251,6 +251,9 @@ handle_cast(Unexpected, State) ->
{noreply, State}.
handle_info({retiring, PID, Reason}, State = #s{rider = PID}) ->
ok = tell(info, "Rider retired with: ~p", [Reason]),
{noreply, State#s{rider = none}};
handle_info(Unexpected, State) ->
ok = log(warning, "Unexpected info: ~tp~n", [Unexpected]),
{noreply, State}.
@@ -310,9 +313,12 @@ do_accounts(State, Manifest) ->
do_check(State = #s{rider = none}) ->
PID = spawn_link(gd_n_rider, init, [{"localhost", 7777}]),
do_check(State#s{rider = PID});
do_check(State = #s{rider = PID}) ->
Stuff = gd_n_rider:stuff(PID),
ok = tell(info, "Rider has Stuff: ~tp", [Stuff]),
do_check(State = #s{rider = PID, keys = #w{wx = KeyP}}) ->
ok =
case wxChoice:getStringSelection(KeyP) of
"" -> ok;
KeyID -> gd_n_rider:check(PID, KeyID)
end,
State.