Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: javiermtorres <javier.maria.torres@gmail.com>
  • Loading branch information
RoadRunnr and javiermtorres committed May 13, 2024
1 parent 36c4a61 commit c2f35f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ergw_aaa_diameter_srv.erl
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,11 @@ start_request_h(SvcName, {PeerRef, #diameter_caps{origin_host = {_, OH}} = Caps}
tokens = Tokens} = Peer,
if Cnt >= Cap ->
?LOG(notice,
"Diameter peer ~0p over configured outstanding request capacity (~p > ~p)",
"Diameter peer ~0p traffic is over the configured outstanding request capacity (~p > ~p)",
[OH, Cnt, Cap]),
{{discard, rate_limit}, Peers0#{OH => inc_stats(no_capacity, Peer)}};
Tokens == 0 ->
?LOG(notice, "Diameter ~0p over configured rate", [OH]),
?LOG(notice, "Diameter peer ~0p traffic is over the configured rate", [OH]),
{{discard, rate_limit}, Peers0#{OH => inc_stats(no_tokens, Peer)}};
true ->
?LOG(debug, "outstanding inc: ~p", [Cnt + 1]),
Expand Down

0 comments on commit c2f35f6

Please sign in to comment.