Skip to content

Commit 91c74f6

Browse files
authored
fixes #78 Use NoneDecryptedInstance to load the config for registerModule (#79)
1 parent 49af76e commit 91c74f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lambda-invoker/src/main/java/com/networknt/aws/lambda/LambdaFunctionHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public LambdaFunctionHandler() {
5757
logger.error("An instance of MetricsHandler is not configured in the handler.yml.");
5858
}
5959
}
60-
ModuleRegistry.registerModule(LambdaInvokerConfig.CONFIG_NAME, LambdaFunctionHandler.class.getName(), config.getMappedConfig(), null);
60+
ModuleRegistry.registerModule(LambdaInvokerConfig.CONFIG_NAME, LambdaFunctionHandler.class.getName(), Config.getNoneDecryptedInstance().getJsonMapConfigNoCache(LambdaInvokerConfig.CONFIG_NAME), null);
6161
if(logger.isInfoEnabled()) logger.info("LambdaFunctionHandler is loaded.");
6262
}
6363

@@ -190,7 +190,7 @@ public static void reload() {
190190
logger.error("An instance of MetricsHandler is not configured in the handler.yml.");
191191
}
192192
}
193-
ModuleRegistry.registerModule(LambdaInvokerConfig.CONFIG_NAME, LambdaFunctionHandler.class.getName(), config.getMappedConfig(), null);
193+
ModuleRegistry.registerModule(LambdaInvokerConfig.CONFIG_NAME, LambdaFunctionHandler.class.getName(), Config.getNoneDecryptedInstance().getJsonMapConfigNoCache(LambdaInvokerConfig.CONFIG_NAME), null);
194194
if(logger.isInfoEnabled()) logger.info("LambdaFunctionHandler is loaded.");
195195
}
196196
}

0 commit comments

Comments
 (0)