Skip to content

Commit

Permalink
Remove service_domain_db:sync/0 (now unused)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Sep 14, 2021
1 parent 16ea21d commit 05e6b76
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/domain/service_domain_db.erl
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
-export([start_link/0]).
-export([enabled/0]).
-export([force_check_for_updates/0]).
-export([sync/0, sync_local/0]).
-export([sync_local/0]).

%% exported for integration tests only!
-export([reset_last_event_id/0]).

-ignore_xref([code_change/3, handle_call/3, handle_cast/2, handle_info/2,
init/1, start_link/0, sync/0, sync_local/0, terminate/2, reset_last_event_id/0]).
init/1, start_link/0, sync_local/0, terminate/2, reset_last_event_id/0]).

%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
Expand Down Expand Up @@ -78,16 +78,6 @@ force_check_for_updates() ->
ok
end.

%% Does nothing but blocks until every member processes its queue.
sync() ->
case ?PG_GET_MEMBERS(?GROUP) of
[_|_] = Pids ->
[gen_server:call(Pid, ping) || Pid <- Pids],
ok;
_ ->
ok
end.

sync_local() ->
gen_server:call(?MODULE, ping).

Expand Down

0 comments on commit 05e6b76

Please sign in to comment.