summaryrefslogtreecommitdiff
path: root/components/dlink_tcp
diff options
context:
space:
mode:
authorMagnus Feuer <mfeuer@jaguarlandrover.com>2015-04-12 16:57:45 -0700
committerMagnus Feuer <mfeuer@jaguarlandrover.com>2015-04-12 16:57:45 -0700
commit1dbfd0f5852261a2c73fec809a9e66de455f79fe (patch)
tree7310933862a16750bf5f191d8fc957a3444754a0 /components/dlink_tcp
parentc3b0878925a047b37b81bbea74b6ebc171b31af4 (diff)
downloadrvi_core-1dbfd0f5852261a2c73fec809a9e66de455f79fe.tar.gz
Additional changes
Diffstat (limited to 'components/dlink_tcp')
-rw-r--r--components/dlink_tcp/src/dlink_tcp_rpc.erl16
1 files changed, 1 insertions, 15 deletions
diff --git a/components/dlink_tcp/src/dlink_tcp_rpc.erl b/components/dlink_tcp/src/dlink_tcp_rpc.erl
index 84d6517..e8f7f01 100644
--- a/components/dlink_tcp/src/dlink_tcp_rpc.erl
+++ b/components/dlink_tcp/src/dlink_tcp_rpc.erl
@@ -315,22 +315,8 @@ handle_socket(FromPid, PeerIP, PeerPort, data,
%% Send our own servide announcement to the remote server
%% that just authorized to us.
- %% First grab all our services.
- [ ok, Services ] = service_discovery_rpc:get_local_services(CompSpec),
+ [ ok, LocalServices ] = service_discovery_rpc:get_services_by_module(CompSpec, local),
- %% Covnert to JSON structured typles.
- LocalServices = [ Service || { Service, _LocalAddress } <- Services ],
- %% lists:foldl(fun({struct, JSONElem}, Acc) ->
- %% [ proplists:get_value("service", JSONElem, undefined) | Acc];
- %% ({Service, _LocalAddress}, Acc) ->
- %% [ Service | Acc ];
- %% (Elem, Acc) ->
- %% [ Elem | Acc ]
- %% end,
- %% [], JSONSvc),
-
- %% Grab our local address.
- { LocalAddress, LocalPort } = rvi_common:node_address_tuple(),
%% Send an authorize back to the remote node
?info("dlink_tcp:authorize(): Announcing local services: ~p to remote ~p:~p",