Skip to content

Commit

Permalink
Merge pull request #11 from Saicasm/dev
Browse files Browse the repository at this point in the history
hotfix: auto commit false
  • Loading branch information
Saicasm authored May 12, 2024
2 parents 23dafed + bd865f5 commit 4b14240
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ public class KafkaConsumer {

private final BlockingQueue<List<MusicTrack>> responseQueue = new LinkedBlockingQueue<>();

@KafkaListener(topics = "final-recommendation", groupId = "client-group")
@KafkaListener(topics = "final-recommendation",
properties = {"enable.auto.commit:false", "auto.offset.reset:latest"},
groupId = "client-group")
public void listen(@Payload List<MusicTrack> message ) {
responseQueue.offer(message);
}
Expand Down

0 comments on commit 4b14240

Please sign in to comment.