Skip to content

Commit

Permalink
Use 3 hours TTL for nodes in disco
Browse files Browse the repository at this point in the history
  • Loading branch information
arcusfelis committed Aug 30, 2023
1 parent 2ba064e commit d6223aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongoose_cets_discovery_rdbms.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ init(Opts = #{cluster_name := _, node_name_to_insert := _}) ->
maps:merge(defaults(), Opts).

defaults() ->
#{expire_time => 60 * 60 * 24, %% one day in seconds
#{expire_time => 60 * 60 * 1, %% 1 hour in seconds
last_query_info => #{}}.

-spec get_nodes(state()) -> {cets_discovery:get_nodes_result(), state()}.
Expand Down

0 comments on commit d6223aa

Please sign in to comment.