Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Haarolean committed Oct 9, 2024
1 parent cf7b2e5 commit 23cd882
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public Mono<ResponseEntity<Void>> deleteConsumerGroup(String clusterName,
}

@Override
public Mono<ResponseEntity<Void>> deleteConsumerGroupOffsets(String clusterName, String groupId, String topicName,
public Mono<ResponseEntity<Void>> deleteConsumerGroupOffsets(String clusterName,
String groupId,
String topicName,
ServerWebExchange exchange) {
var context = AccessContext.builder()
.cluster(clusterName)
Expand Down
12 changes: 6 additions & 6 deletions api/src/main/java/io/kafbat/ui/service/ConsumerGroupService.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ private Mono<List<ConsumerGroupDescription>> describeConsumerGroups(ReactiveAdmi


private Mono<List<ConsumerGroupDescription>> loadDescriptionsByInternalConsumerGroups(ReactiveAdminClient ac,
List<ConsumerGroupListing> groups,
Comparator<GroupWithDescr> comparator,
int pageNum,
int perPage,
SortOrderDTO sortOrderDto) {
List<ConsumerGroupListing> groups,
Comparator<GroupWithDescr> comparator,
int pageNum,
int perPage,
SortOrderDTO sortOrderDto) {
var groupNames = groups.stream().map(ConsumerGroupListing::groupId).toList();

return ac.describeConsumerGroups(groupNames)
Expand Down Expand Up @@ -248,7 +248,7 @@ public Mono<Void> deleteConsumerGroupById(KafkaCluster cluster,
}

public Mono<Void> deleteConsumerGroupOffset(KafkaCluster cluster,
String groupId,
String groupId,
String topicName) {
return adminClientService.get(cluster)
.flatMap(adminClient -> adminClient.deleteConsumerGroupOffsets(groupId, topicName));
Expand Down

0 comments on commit 23cd882

Please sign in to comment.