Skip to content

Commit 2938338

Browse files
committed
rabbit_khepri: Do not hard-code coordination, use the constant instead
1 parent 05717cc commit 2938338

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/src/rabbit_khepri.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,8 @@ force_reset() ->
605605
case rabbit:is_running() of
606606
false ->
607607
ok = khepri:stop(?RA_CLUSTER_NAME),
608-
DataDir = maps:get(data_dir, ra_system:fetch(coordination)),
609-
ok = ra_system:ensure_ra_system_stopped(coordination),
608+
DataDir = maps:get(data_dir, ra_system:fetch(?RA_SYSTEM)),
609+
ok = rabbit_ra_systems:ensure_ra_system_stopped(?RA_SYSTEM),
610610
ok = rabbit_file:recursive_delete(
611611
filelib:wildcard(DataDir ++ "/*")),
612612

0 commit comments

Comments
 (0)