Skip to content

Commit

Permalink
reorder resolvePartition call since we do not need it for bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonk000 committed Aug 27, 2024
1 parent 7dd2ae8 commit ef14c09
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,12 @@ private Partition resolvePartition(ContextT context) {

@Override
public Optional<Listener> acquire(ContextT context) {
final Partition partition = resolvePartition(context);

if (shouldBypass(context)){
return createBypassListener();
}

final Partition partition = resolvePartition(context);

// This is a little unusual in that the partition is not a hard limit. It is
// only a limit that it is applied if the global limit is exceeded. This allows
// for excess capacity in each partition to allow for bursting over the limit,
Expand Down

0 comments on commit ef14c09

Please sign in to comment.