From ce92a1bf821b5cf7d4241f2d49f656171875cafe Mon Sep 17 00:00:00 2001 From: Mikhail Uvarov Date: Tue, 28 Nov 2023 17:50:43 +0100 Subject: [PATCH] Enable cets_discovery get_nodes queries even with no tables Discovery is important to join nodes, so enable it even with no added tables to track. This should simplify logic and testing a bit. --- src/cets_discovery.erl | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cets_discovery.erl b/src/cets_discovery.erl index f8a74ced..b0ed37b5 100644 --- a/src/cets_discovery.erl +++ b/src/cets_discovery.erl @@ -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}) ->