Skip to content

Commit

Permalink
fix: fix the setMaxRetryAttempt
Browse files Browse the repository at this point in the history
Signed-off-by: wangxye <[email protected]>
  • Loading branch information
wangxye committed Oct 31, 2023
1 parent 19a8c44 commit 550a230
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ protected static String getGroupId(String methodName) {
// prepare consumer group
CreateGroupRequest request = CreateGroupRequest.newBuilder()
.setName(groupId)
.setMaxRetryAttempt(16)
.setMaxDeliveryAttempt(16)
.setGroupType(GroupType.GROUP_TYPE_STANDARD)
.build();
CreateGroupReply reply = createConsumerGroup(request).join();
Expand All @@ -161,7 +161,7 @@ protected static String getOrderlyGroupId(String methodName) {
String groupId = String.format("GID_%s_%s", methodName, RandomUtils.getStringWithCharacter(6));
CreateGroupRequest request = CreateGroupRequest.newBuilder()
.setName(groupId)
.setMaxRetryAttempt(16)
.setMaxDeliveryAttempt(16)
.setGroupType(GroupType.GROUP_TYPE_FIFO)
.build();
CreateGroupReply reply = createConsumerGroup(request).join();
Expand Down

0 comments on commit 550a230

Please sign in to comment.