apache / rocketmq-spring

Apache RocketMQ Spring Integration
https://rocketmq.apache.org/
Apache License 2.0
2.11k stars 898 forks source link

The unit of consumeTimeout in RocketMQ-Spring is inconsistent with that of RocketMQ client #241

Closed wzqiang1332 closed 4 years ago

wzqiang1332 commented 4 years ago

配置与rocketmq-client不一致, rocketmq-client里面是以分钟计算

org.apache.rocketmq.spring.annotation.RocketMQMessageListener

/**
  * Max consumer timeout, default 30s.
  */
long consumeTimeout() default 30000L;`

org.apache.rocketmq.client.consumer.DefaultMQPushConsumer

/**
  * Maximum amount of time in minutes a message may block the consuming thread.
  */
private long consumeTimeout = 15;
RongtongJin commented 4 years ago

It‘s indeed a bug. Could you please submit a PR to slove this issue?

RongtongJin commented 4 years ago

I will fix it.