fix(dsraft): use local application environment
This commit is contained in:
parent
fc0434afc8
commit
d8aa39a310
|
@ -675,7 +675,7 @@ list_nodes() ->
|
||||||
-define(SHARD_RPC(DB, SHARD, NODE, BODY),
|
-define(SHARD_RPC(DB, SHARD, NODE, BODY),
|
||||||
case
|
case
|
||||||
emqx_ds_replication_layer_shard:servers(
|
emqx_ds_replication_layer_shard:servers(
|
||||||
DB, SHARD, application:get_env(emqx_durable_storage, reads, leader_preferred)
|
DB, SHARD, application:get_env(emqx_ds_builtin_raft, reads, leader_preferred)
|
||||||
)
|
)
|
||||||
of
|
of
|
||||||
[{_, NODE} | _] ->
|
[{_, NODE} | _] ->
|
||||||
|
|
Loading…
Reference in New Issue