aboutsummaryrefslogtreecommitdiff
path: root/step-05/echo_client.erl
diff options
context:
space:
mode:
Diffstat (limited to 'step-05/echo_client.erl')
-rw-r--r--step-05/echo_client.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/step-05/echo_client.erl b/step-05/echo_client.erl
index 92785be..25ddffe 100644
--- a/step-05/echo_client.erl
+++ b/step-05/echo_client.erl
@@ -3,12 +3,10 @@
-export([send_ping/1]).
send_ping(Echo_Node) ->
- io:format("Sending echo to ~s~n", [Echo_Node]),
- io:format("self=~p~n", [self()]),
+ io:format("Sending echo to ~s, self=~p~n", [Echo_Node, self()]),
{echo, Echo_Node} ! {ping, self()},
receive
{pong, Server} -> io:format("got pong from ~w~n", [Server]);
X -> io:format("Unexpected reply: ~w~n", [X])
after 1000 -> io:format("timeout~n")
- end,
- io:format("done~n").
+ end.