Fix connection messages
This commit is contained in:
parent
b340197713
commit
c7d2761921
@ -288,7 +288,7 @@ do_message({result, #{info := Info}}, State = #s{perf = PerfT, hist = {LastTS, A
|
|||||||
Entry = io_lib:format("~nFound! Reporting ~w cycles to leader.", [length(Cycles)]),
|
Entry = io_lib:format("~nFound! Reporting ~w cycles to leader.", [length(Cycles)]),
|
||||||
do_message2(Entry, NewState);
|
do_message2(Entry, NewState);
|
||||||
Other ->
|
Other ->
|
||||||
Entry = io_lib:format("~nUnexpected: ~tp", [Other]),
|
Entry = io_lib:format("~nUnexpected 'result': ~tp", [Other]),
|
||||||
do_message2(Entry, NewState)
|
do_message2(Entry, NewState)
|
||||||
end;
|
end;
|
||||||
do_message({pool_notification, #{info := #{msg := MSG}}}, State = #s{height = HeightT, block = BlockT, candy = CandT}) ->
|
do_message({pool_notification, #{info := #{msg := MSG}}}, State = #s{height = HeightT, block = BlockT, candy = CandT}) ->
|
||||||
@ -301,14 +301,14 @@ do_message({pool_notification, #{info := #{msg := MSG}}}, State = #s{height = He
|
|||||||
ok = wxStaticText:setLabel(CandT, Candidate),
|
ok = wxStaticText:setLabel(CandT, Candidate),
|
||||||
State;
|
State;
|
||||||
Other ->
|
Other ->
|
||||||
Entry = io_lib:format("~nUnexpected: ~tp", [Other]),
|
Entry = io_lib:format("~nUnexpected 'pool_notification': ~tp", [Other]),
|
||||||
do_message2(Entry, State)
|
do_message2(Entry, State)
|
||||||
end;
|
end;
|
||||||
do_message({connected, _}, State) ->
|
do_message({connected, _}, State) ->
|
||||||
Entry = io_lib:format("~nConnected!"),
|
Entry = "\nConnected!",
|
||||||
do_message2(Entry, State);
|
do_message2(Entry, State);
|
||||||
do_message({disconnected, _}, State) ->
|
do_message({disconnected, _}, State) ->
|
||||||
Entry = io_lib:format("~nDisconnected!"),
|
Entry = "\nDisconnected!",
|
||||||
do_message2(Entry, State);
|
do_message2(Entry, State);
|
||||||
do_message(Terms, State) ->
|
do_message(Terms, State) ->
|
||||||
tell(info, "~p", [Terms]),
|
tell(info, "~p", [Terms]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user