Skip to content

Commit 37d486a

Browse files
committed
remove unused variable from example
1 parent ade6597 commit 37d486a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-License-Identifier: Apache-2.0
33
package software.amazon.lambda.durable.examples;
44

5-
import java.util.concurrent.atomic.AtomicInteger;
65
import software.amazon.lambda.durable.DurableContext;
76
import software.amazon.lambda.durable.DurableHandler;
87
import software.amazon.lambda.durable.config.WaitForConditionConfig;
@@ -15,8 +14,6 @@
1514
*/
1615
public class WaitForConditionExample extends DurableHandler<Integer, Integer> {
1716

18-
private final AtomicInteger callCount = new AtomicInteger(0);
19-
2017
@Override
2118
public Integer handleRequest(Integer input, DurableContext context) {
2219
// Poll the shipment status until the order is shipped.
@@ -34,6 +31,6 @@ public Integer handleRequest(Integer input, DurableContext context) {
3431
// Order still processing — continue polling
3532
return WaitForConditionResult.continuePolling(callCount + 1);
3633
},
37-
WaitForConditionConfig.<Integer>builder().initialState(0).build()); // Order pending - initial status
34+
WaitForConditionConfig.<Integer>builder().initialState(1).build()); // Order pending - initial status
3835
}
3936
}

0 commit comments

Comments
 (0)