File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
xds/src/main/java/io/grpc/xds Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -817,6 +817,7 @@ private ClientInterceptor createFilters(
817817 }
818818
819819 ImmutableList .Builder <ClientInterceptor > filterInterceptors = ImmutableList .builder ();
820+ ClientInterceptor extProcInterceptor = null ;
820821 for (NamedFilterConfig namedFilter : filterConfigs ) {
821822 String name = namedFilter .name ;
822823 FilterConfig config = namedFilter .filterConfig ;
@@ -829,10 +830,18 @@ private ClientInterceptor createFilters(
829830 filter .buildClientInterceptor (config , overrideConfig , scheduler );
830831
831832 if (interceptor != null ) {
832- filterInterceptors .add (interceptor );
833+ if (config .typeUrl ().equals (ExternalProcessorFilter .TYPE_URL )) {
834+ extProcInterceptor = interceptor ;
835+ } else {
836+ filterInterceptors .add (interceptor );
837+ }
833838 }
834839 }
835840
841+ if (extProcInterceptor != null ) {
842+ filterInterceptors .add (extProcInterceptor );
843+ }
844+
836845 // Combine interceptors produced by different filters into a single one that executes
837846 // them sequentially. The order is preserved.
838847 return combineInterceptors (filterInterceptors .build ());
You can’t perform that action at this time.
0 commit comments