diff options
author | Anders Svensson <[email protected]> | 2016-06-11 14:45:12 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2016-06-11 14:55:50 +0200 |
commit | 1e153ca0258c7f14d65c41873b2c2034dc607181 (patch) | |
tree | ce2b371d0a07b5498afc0fe196354226461544ff /lib/diameter | |
parent | b4b7e8a7a694b3473dcecdbf117e007ad22b8fb1 (diff) | |
download | otp-1e153ca0258c7f14d65c41873b2c2034dc607181.tar.gz otp-1e153ca0258c7f14d65c41873b2c2034dc607181.tar.bz2 otp-1e153ca0258c7f14d65c41873b2c2034dc607181.zip |
Remove unnecessary no_auto_import
Not difficult to avoid, and better without.
Diffstat (limited to 'lib/diameter')
-rw-r--r-- | lib/diameter/src/base/diameter_config.erl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/diameter/src/base/diameter_config.erl b/lib/diameter/src/base/diameter_config.erl index 3074b65e02..fdbbd412a1 100644 --- a/lib/diameter/src/base/diameter_config.erl +++ b/lib/diameter/src/base/diameter_config.erl @@ -38,8 +38,6 @@ -module(diameter_config). -behaviour(gen_server). --compile({no_auto_import, [monitor/2]}). - -export([start_service/2, stop_service/1, add_transport/2, @@ -357,7 +355,7 @@ handle_info({'DOWN', MRef, process, _, Reason}, #state{role = server} = S) -> {noreply, S}; handle_info({monitor, SvcName, Pid}, #state{role = server} = S) -> - monitor(Pid, SvcName), + insert_monitor(Pid, SvcName), {noreply, S}; handle_info({restart, SvcName}, #state{role = server} = S) -> @@ -480,8 +478,8 @@ startmon(SvcName, {ok, Pid}) -> startmon(_, {error, _}) -> ok. -monitor(Pid, SvcName) -> - MRef = erlang:monitor(process, Pid), +insert_monitor(Pid, SvcName) -> + MRef = monitor(process, Pid), insert(#monitor{mref = MRef, service = SvcName}). %% queue_restart/2 |