Skip to content

Commit 9cd6156

Browse files
authored
fix WaitForCondition, use polled state on replay resume (aws#259)
1 parent a2b27a0 commit 9cd6156

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/src/main/java/software/amazon/lambda/durable/operation/WaitForConditionOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ private CompletableFuture<Void> pollReadyAndResumeCheckLoop(Operation existing)
115115
.thenCompose(op -> op.status() == OperationStatus.READY
116116
? CompletableFuture.completedFuture(op)
117117
: pollForOperationUpdates())
118-
.thenRun(() -> resumeCheckLoop(existing));
118+
.thenAccept(this::resumeCheckLoop);
119119
}
120120

121121
private void executeCheckLogic(T currentState, int attempt) {

0 commit comments

Comments
 (0)