fix(cluster-link): avoid starting ps syncer if persistence disabled
This commit is contained in:
parent
036c7e8492
commit
e9c24090d4
|
@ -241,10 +241,10 @@ init({sup, TargetCluster}) ->
|
||||||
intensity => 10,
|
intensity => 10,
|
||||||
period => 60
|
period => 60
|
||||||
},
|
},
|
||||||
Children = [
|
Children = lists:append([
|
||||||
child_spec(actor, TargetCluster),
|
[child_spec(actor, TargetCluster)],
|
||||||
child_spec(ps_actor, TargetCluster)
|
[child_spec(ps_actor, TargetCluster) || emqx_persistent_message:is_persistence_enabled()]
|
||||||
],
|
]),
|
||||||
{ok, {SupFlags, Children}};
|
{ok, {SupFlags, Children}};
|
||||||
init({actor, State}) ->
|
init({actor, State}) ->
|
||||||
init_actor(State).
|
init_actor(State).
|
||||||
|
|
Loading…
Reference in New Issue