core: using correct key for hedging max attempts

This commit is contained in:
Dan 2019-02-19 15:22:16 -08:00 committed by ZHANG Dapeng
parent 5f60f22b6a
commit 05b6156d43
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ public final class ServiceConfigUtil {
if (!hedgingPolicy.containsKey(HEDGING_POLICY_MAX_ATTEMPTS_KEY)) {
return null;
}
return getDouble(hedgingPolicy, RETRY_POLICY_MAX_ATTEMPTS_KEY).intValue();
return getDouble(hedgingPolicy, HEDGING_POLICY_MAX_ATTEMPTS_KEY).intValue();
}
@Nullable