From e21ffc9eadd7b41f242548aa6d0534a986a7f94b Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines Date: Wed, 16 Aug 2023 17:00:15 +0200 Subject: [PATCH] with warmup --- src/main/java/com/drhelius/MainFunction.java | 2 +- src/main/java/com/drhelius/WarmupFunction.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/drhelius/MainFunction.java b/src/main/java/com/drhelius/MainFunction.java index adae864..cb076ce 100644 --- a/src/main/java/com/drhelius/MainFunction.java +++ b/src/main/java/com/drhelius/MainFunction.java @@ -32,7 +32,7 @@ public HttpResponseMessage run( if (name == null) { return request.createResponseBuilder(HttpStatus.OK).body("Please pass a name on the query string or in the request body").build(); } else { - return request.createResponseBuilder(HttpStatus.OK).body("Hey, " + name).build(); + return request.createResponseBuilder(HttpStatus.OK).body("Hello, " + name).build(); } } } diff --git a/src/main/java/com/drhelius/WarmupFunction.java b/src/main/java/com/drhelius/WarmupFunction.java index 98ba2a7..e8008f6 100644 --- a/src/main/java/com/drhelius/WarmupFunction.java +++ b/src/main/java/com/drhelius/WarmupFunction.java @@ -9,7 +9,7 @@ public class WarmupFunction { @FunctionName("Warmup") public void warmup( @WarmupTrigger Object warmupContext, ExecutionContext context) { context.getLogger().info("Function App instance is warming up 🌞🌞🌞"); - //LazyClient.getInstance().run(); + LazyClient.getInstance().run(); context.getLogger().info("Function App instance is warm 🌞🌞🌞"); } }