[ISSUE #10005] Fix switch-case logic in updateConsumerOffsetAsync (#10006)

This commit is contained in:
yx9o
2026-01-15 10:58:35 +08:00
committed by GitHub
parent 3d3a2d032f
commit 45fc4e0c7b
@@ -429,14 +429,12 @@ public class MQClientAPIExt extends MQClientAPIImpl {
return;
}
switch (response.getCode()) {
case ResponseCode.SUCCESS: {
case ResponseCode.SUCCESS:
future.complete(null);
}
case ResponseCode.SYSTEM_ERROR:
case ResponseCode.SUBSCRIPTION_GROUP_NOT_EXIST:
case ResponseCode.TOPIC_NOT_EXIST: {
future.completeExceptionally(new MQBrokerException(response.getCode(), response.getRemark()));
}
break;
default:
future.completeExceptionally(new MQBrokerException(response.getCode(), response.getRemark(), brokerAddr));
break;
}
});
return future;