Skip to content

Commit

Permalink
修复producer,consumer配置接口多处调用被覆盖的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
iamazy committed Sep 27, 2020
1 parent 6391e53 commit 460f7ed
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public Response configAddOrUpdate(@Body ConsumerConfig config) throws Exception
private void mergeConsumerConfig(Consumer consumer, ConsumerConfig config) {
if (consumer.getConfig() == null) {
consumer.setConfig(config);
return;
}
if (config.getAckTimeout() !=null) {
consumer.getConfig().setAckTimeout(config.getAckTimeout());
Expand Down

0 comments on commit 460f7ed

Please sign in to comment.