Skip to content

Commit 87933a6

Browse files
authored
Merge pull request #64 from anthony-steele-cko/fix-aws-sns-sample
Fix the code in AWS SQS sample
2 parents 647da2e + 57b07bb commit 87933a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Aws/SQS/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ using (var materializer = system.Materializer())
2828
// after we handled the message we need to take if off from the queue
2929
return MessageAction.Delete(msg);
3030
})
31-
.To(SqsAckSink.Grouped(client, QueueUrl)) // we delete messages in batches
32-
.Run(_materializer);
31+
.ToMaterialized(SqsAckSink.Grouped(client, QueueUrl), Keep.Right)
32+
// we delete messages in batches
33+
.Run(materializer);
3334
}
3435
```
3536

0 commit comments

Comments
 (0)