Skip to content

Commit

Permalink
use the right config
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <[email protected]>
  • Loading branch information
lukasj committed Apr 3, 2023
1 parent cd30906 commit ef4b0fb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
public class MetroCdiExtension implements Extension {

public void start(@Observes @Priority(Interceptor.Priority.PLATFORM_AFTER) @Initialized(ApplicationScoped.class) Object event, BeanManager bm) {
org.eclipse.microprofile.config.Config config = ConfigProvider.getConfig();
Config helidonConfig = MpConfig.toHelidonConfig(config).get("metro");
MetroSupport metro = MetroSupport.create(helidonConfig);
Config helidonConfig = MpConfig.toHelidonConfig(ConfigProvider.getConfig());
MetroSupport metro = MetroSupport.create(helidonConfig.get("metro"));
RoutingBuilders.create(helidonConfig)
.routingBuilder()
.register(metro);
Expand Down

0 comments on commit ef4b0fb

Please sign in to comment.