Skip to content

Commit

Permalink
Enable cets_discovery get_nodes queries even with no tables
Browse files Browse the repository at this point in the history
Discovery is important to join nodes, so enable it
even with no added tables to track.
This should simplify logic and testing a bit.
  • Loading branch information
arcusfelis committed Nov 28, 2023
1 parent 4ef4a34 commit ce92a1b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cets_discovery.erl
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,6 @@ code_change(_OldVsn, State, _Extra) ->
{ok, State}.

-spec handle_check(state()) -> state().
handle_check(State = #{tables := []}) ->
%% No tables to track, skip
State;
handle_check(State = #{get_nodes_status := running}) ->
State#{should_retry_get_nodes := true};
handle_check(State = #{backend_module := Mod, backend_state := BackendState}) ->
Expand Down

0 comments on commit ce92a1b

Please sign in to comment.