aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/examples/code/relay_cb.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2014-05-27 09:00:22 +0200
committerAnders Svensson <[email protected]>2014-05-27 09:00:22 +0200
commit44fc88d806af0b4a5c861e3501d210a8c574533b (patch)
treeea27f66643199224cf8c6136d26bafb715dd892b /lib/diameter/examples/code/relay_cb.erl
parent6b6cd01b607a1bfcf61bb6d5f4cc3fe9b37445db (diff)
parent2d5e6f4d438db1a480e44c539155e334c11851bc (diff)
downloadotp-44fc88d806af0b4a5c861e3501d210a8c574533b.tar.gz
otp-44fc88d806af0b4a5c861e3501d210a8c574533b.tar.bz2
otp-44fc88d806af0b4a5c861e3501d210a8c574533b.zip
Merge branch 'anders/diameter/hardening/OTP-11721' into maint
* anders/diameter/hardening/OTP-11721: Simplify example server Make example server answer unsupported requests with 3001 Make example code quiet Don't count messages on arbitrary keys Replace traffic-related log reports with no-op function calls
Diffstat (limited to 'lib/diameter/examples/code/relay_cb.erl')
-rw-r--r--lib/diameter/examples/code/relay_cb.erl8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/diameter/examples/code/relay_cb.erl b/lib/diameter/examples/code/relay_cb.erl
index 9f9cd8d5ae..68798014e6 100644
--- a/lib/diameter/examples/code/relay_cb.erl
+++ b/lib/diameter/examples/code/relay_cb.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2012. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2014. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -32,12 +32,10 @@
handle_error/5,
handle_request/3]).
-peer_up(_SvcName, {PeerRef, _}, State) ->
- io:format("up: ~p~n", [PeerRef]),
+peer_up(_SvcName, _Peer, State) ->
State.
-peer_down(_SvcName, {PeerRef, _}, State) ->
- io:format("down: ~p~n", [PeerRef]),
+peer_down(_SvcName, _Peer, State) ->
State.
%% Returning 'relay' from handle_request causes diameter to resend the