Skip to content

Commit

Permalink
feat(shell): new consumer in pref command should start consuming from…
Browse files Browse the repository at this point in the history
… the beginning

Signed-off-by: SSpirits <[email protected]>
  • Loading branch information
ShadowySpirits committed Aug 15, 2024
1 parent bc7aec4 commit d151fc1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public ConsumerService(String bootstrapServer) {
Properties properties = new Properties();
properties.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServer);
properties.put(ConsumerConfig.REQUEST_TIMEOUT_MS_CONFIG, (int) TimeUnit.SECONDS.toMillis(300));
properties.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "earliest");
this.admin = Admin.create(properties);
this.groupSuffix = new SimpleDateFormat("HHmmss").format(System.currentTimeMillis());
}
Expand Down

0 comments on commit d151fc1

Please sign in to comment.