Skip to content

Commit a2b27a0

Browse files
authored
chore(examples): remove deprecated class and function from examples. (aws#258)
1 parent a5f4354 commit a2b27a0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/src/main/java/software/amazon/lambda/durable/examples/CustomPollingExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public String handleRequest(GreetingRequest input, DurableContext context) {
3939
context.getLogger().info("Starting workflow with input: {}", input);
4040

4141
// Step 1: low case the input
42-
var lowered = context.stepAsync("validate", String.class, () -> {
42+
var lowered = context.stepAsync("validate", String.class, stepCtx -> {
4343
try {
4444
// prevent the execution from suspension
4545
Thread.sleep(5000);

examples/src/main/java/software/amazon/lambda/durable/examples/RetryExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import org.slf4j.LoggerFactory;
99
import software.amazon.lambda.durable.DurableContext;
1010
import software.amazon.lambda.durable.DurableHandler;
11-
import software.amazon.lambda.durable.StepConfig;
11+
import software.amazon.lambda.durable.config.StepConfig;
1212
import software.amazon.lambda.durable.retry.RetryStrategies;
1313

1414
/**

0 commit comments

Comments
 (0)