Skip to content

Commit

Permalink
applied default value in case legacy config is used (#787)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1e85d70)
  • Loading branch information
jonathanlukas committed May 7, 2024
1 parent e0e34bb commit a518873
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,12 @@ public boolean useDefaultRetryPolicy() {

@Override
public boolean preferRestOverGrpc() {
return camundaClientProperties.getZeebe().isPreferRestOverGrpc();
return getOrLegacyOrDefault(
"preferRestOverGrpc",
() -> camundaClientProperties.getZeebe().isPreferRestOverGrpc(),
() -> null,
DEFAULT.preferRestOverGrpc(),
configCache);
}

@Override
Expand Down

0 comments on commit a518873

Please sign in to comment.