Skip to content

Commit

Permalink
Merge pull request #45438 from geoand/cp-startup
Browse files Browse the repository at this point in the history
Use empty default values when building no-op CP instance
  • Loading branch information
geoand authored Jan 9, 2025
2 parents 1c42adb + 3fdca80 commit f010b20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<smallrye-graphql.version>2.12.0</smallrye-graphql.version>
<smallrye-fault-tolerance.version>6.7.2</smallrye-fault-tolerance.version>
<smallrye-jwt.version>4.6.1</smallrye-jwt.version>
<smallrye-context-propagation.version>2.1.2</smallrye-context-propagation.version>
<smallrye-context-propagation.version>2.2.0</smallrye-context-propagation.version>
<smallrye-reactive-streams-operators.version>1.0.13</smallrye-reactive-streams-operators.version>
<smallrye-reactive-types-converter.version>3.0.1</smallrye-reactive-types-converter.version>
<smallrye-mutiny-vertx-binding.version>3.17.1</smallrye-mutiny-vertx-binding.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import io.smallrye.context.SmallRyeContextManager;
import io.smallrye.context.SmallRyeManagedExecutor;
import io.smallrye.context.SmallRyeThreadContext;
import io.smallrye.context.impl.DefaultValues;

/**
* The runtime value service used to create values related to the MP-JWT services
Expand Down Expand Up @@ -141,6 +142,7 @@ public void configureStaticInit(List<ThreadContextProvider> discoveredProviders,
noContextBuilder.withThreadContextProviders(new ThreadContextProvider[0]);
noContextBuilder.withContextManagerExtensions(new ContextManagerExtension[0]);
noContextBuilder.withDefaultExecutorService(NOPE_EXECUTOR_SERVICE);
noContextBuilder.withDefaultValues(DefaultValues.empty());
ContextManagerProvider.instance().registerContextManager(noContextBuilder.build(), null /* not used */);
}

Expand Down

0 comments on commit f010b20

Please sign in to comment.