diff options
author | Anders Svensson <[email protected]> | 2011-09-27 15:56:55 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-09-27 20:18:21 +0200 |
commit | 0296dbb27b20c75edc6a2dd75369dc17dc98aa5a (patch) | |
tree | d4dbc0838f6053fd6ff9cc66c52f6a1b0fd5e36f /lib/diameter/src/app/diameter_callback.erl | |
parent | 5af64c7d57d83ce35bfd7b15ac3ce6ec7459fd73 (diff) | |
download | otp-0296dbb27b20c75edc6a2dd75369dc17dc98aa5a.tar.gz otp-0296dbb27b20c75edc6a2dd75369dc17dc98aa5a.tar.bz2 otp-0296dbb27b20c75edc6a2dd75369dc17dc98aa5a.zip |
Example/dbg/comment fixes
Diffstat (limited to 'lib/diameter/src/app/diameter_callback.erl')
-rw-r--r-- | lib/diameter/src/app/diameter_callback.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/diameter/src/app/diameter_callback.erl b/lib/diameter/src/app/diameter_callback.erl index fcf9a8fc1e..6d5c8cdca1 100644 --- a/lib/diameter/src/app/diameter_callback.erl +++ b/lib/diameter/src/app/diameter_callback.erl @@ -60,28 +60,28 @@ pick_peer([Peer|_], _, _SvcName, _State) -> %%% ---------------------------------------------------------- prepare_request(Pkt, _SvcName, _Peer) -> - Pkt. + {send, Pkt}. %%% ---------------------------------------------------------- %%% # prepare_retransmit/3 %%% ---------------------------------------------------------- prepare_retransmit(Pkt, _SvcName, _Peer) -> - Pkt. + {send, Pkt}. %%% ---------------------------------------------------------- %%% # handle_request/3 %%% ---------------------------------------------------------- handle_request(_Pkt, _SvcName, _Peer) -> - discard. + {protocol_error, 3001}. %% DIAMETER_COMMAND_UNSUPPORTED %%% ---------------------------------------------------------- %%% # handle_answer/4 %%% ---------------------------------------------------------- handle_answer(#diameter_packet{msg = Ans}, _Req, _SvcName, _Peer) -> - {ok, Ans}. + Ans. %%% --------------------------------------------------------------------------- %%% # handle_error/4 |