mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-24 16:04:00 +08:00
* Bump checkstyle to 3.2.0 * Fix checkstyle
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ public class DefaultBrokerHeartbeatManager implements BrokerHeartbeatManager {
|
||||
long realConfirmOffset = Optional.ofNullable(confirmOffset).orElse(-1L);
|
||||
|
||||
prev.setLastUpdateTimestamp(System.currentTimeMillis());
|
||||
if (realEpoch > prev.getEpoch() || (realEpoch == prev.getEpoch() && realMaxOffset > prev.getMaxOffset())) {
|
||||
if (realEpoch > prev.getEpoch() || realEpoch == prev.getEpoch() && realMaxOffset > prev.getMaxOffset()) {
|
||||
prev.setEpoch(realEpoch);
|
||||
prev.setMaxOffset(realMaxOffset);
|
||||
prev.setConfirmOffset(realConfirmOffset);
|
||||
|
||||
Reference in New Issue
Block a user