Skip to content

Commit

Permalink
args formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed May 8, 2023
1 parent 19674b2 commit a2feef7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/main/java/io/github/eocqrs/kafka/consumer/KfConsumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ public void subscribe(final ConsumerRebalanceListener listener,
* we have to wrap the ConsumerRecords into some object
*/
@Override
public ConsumerRecords<K, X> records(final String topic,
final Duration timeout) {
public ConsumerRecords<K, X> records(
final String topic, final Duration timeout
) {
this.subscribe(topic);
return this.origin.poll(timeout);
}
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/io/github/eocqrs/kafka/fake/FkConsumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ public void subscribe(final ConsumerRebalanceListener listener,
* @todo #54:60m/DEV Fake records is not implemented
*/
@Override
public ConsumerRecords<K, X> records(final String topic,
final Duration timeout) {
public ConsumerRecords<K, X> records(
final String topic, final Duration timeout
) {
throw new UnsupportedOperationException("#records()");
}

Expand Down

0 comments on commit a2feef7

Please sign in to comment.