Skip to content

Commit

Permalink
Align configuration key for server feature and server.
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Langer <[email protected]>
  • Loading branch information
tomas-langer committed Sep 27, 2024
1 parent f6615cd commit d85a7d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ interface LimitsFeatureConfigBlueprint extends Prototype.Factory<LimitsFeature>
*/
@Option.Provider(value = LimitProvider.class, discoverServices = false)
@Option.Configured
Optional<Limit> limit();
Optional<Limit> concurrencyLimit();

/**
* Whether this feature is enabled, defaults to {@code true}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class LimitsRoutingFeature implements HttpFeature, Weighted {

LimitsRoutingFeature(LimitsFeatureConfig config, double featureWeight) {
this.featureWeight = featureWeight;
this.limits = config.limit().orElse(null);
this.limits = config.concurrencyLimit().orElse(null);
this.enabled = config.enabled();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
server:
features:
limits:
limit:
concurrency-limit:
bulkhead:
limit: 1
queue-length: 0

0 comments on commit d85a7d0

Please sign in to comment.