Skip to content

Commit 78760df

Browse files
authored
oauth2: minor perf-refactor when fetching a cluster (#41315)
Signed-off-by: Adi Suissa-Peleg <[email protected]>
1 parent f110bfa commit 78760df

File tree

1 file changed

+1
-1
lines changed
  • source/extensions/filters/http/oauth2

1 file changed

+1
-1
lines changed

source/extensions/filters/http/oauth2/filter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ FilterConfig::FilterConfig(
469469
proto_config.cookie_configs().has_code_verifier_cookie_config())
470470
? CookieSettings(proto_config.cookie_configs().code_verifier_cookie_config())
471471
: CookieSettings()) {
472-
if (!context.clusterManager().clusters().hasCluster(oauth_token_endpoint_.cluster())) {
472+
if (!context.clusterManager().hasCluster(oauth_token_endpoint_.cluster())) {
473473
// This is not necessarily a configuration error — sometimes cluster is sent later than the
474474
// listener in the xDS stream.
475475
ENVOY_LOG(warn, "OAuth2 filter: unknown cluster '{}' in config. ",

0 commit comments

Comments
 (0)