Skip to content

Commit

Permalink
khepri_cluster: Use the ?TRANSIENT_ERROR_RETRY_INTERVAL constant
Browse files Browse the repository at this point in the history
... instead of hard-coding a 200 ms sleep.

[Why]
The same value is used in other retry loops in the same module. It
should have been used there as well.

(cherry picked from commit 77ec77e)
  • Loading branch information
dumbbell committed Feb 21, 2025
1 parent f9cdbfb commit c5d8291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/khepri_cluster.erl
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ wait_for_cluster_change_permitted(RaMemberOrStoreId, Timeout) ->
%% cluster could have a leader and still not be ready to accept
%% a cluster change. This avoids too many retries that will
%% just eat resources.
timer:sleep(200),
timer:sleep(?TRANSIENT_ERROR_RETRY_INTERVAL),

Ret.

Expand Down

0 comments on commit c5d8291

Please sign in to comment.