Skip to content

Commit

Permalink
with warmup
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Aug 16, 2023
1 parent f0f718a commit e21ffc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/drhelius/MainFunction.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/drhelius/WarmupFunction.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 🌞🌞🌞");
}
}
Expand Down

0 comments on commit e21ffc9

Please sign in to comment.