Skip to content

Commit

Permalink
fix java test code
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Dec 16, 2024
1 parent 880fbd2 commit 039efcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions backend/runner/pubsub/testdata/go/publisher/types.ftl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package xyz.block.ftl.java.test.subscriber;

import java.util.concurrent.atomic.AtomicInteger;

import ftl.publisher.PubSubEvent;
import ftl.publisher.TestTopicTopic;
import ftl.publisher.Topic2Topic;
Expand All @@ -21,7 +19,7 @@ void consume(PubSubEvent event) throws Exception {
void consumeFromLatest(PubSubEvent event) throws Exception {
}

ConsumeFromLatest
@Subscription(topic = Topic2Topic.class, from = FromOffset.BEGINNING)
@Retry(count = 2, minBackoff = "1s", maxBackoff = "1s")
public void consumeButFailAndRetry(PubSubEvent event) {
throw new RuntimeException("always error: event " + event.getTime());
Expand Down

0 comments on commit 039efcb

Please sign in to comment.