Skip to content

Commit

Permalink
Merge pull request #43 from esl/disco-works-even-with-no-tables
Browse files Browse the repository at this point in the history
Enable cets_discovery get_nodes queries even with no tables
  • Loading branch information
chrzaszcz committed Nov 29, 2023
2 parents 4ef4a34 + ce92a1b commit a2f4327
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 a2f4327

Please sign in to comment.