Skip to content

Commit

Permalink
Remove redundant variables (#6740)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhy50 authored May 17, 2023
1 parent 92ea901 commit 70480a1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ public long readOffset(final MessageQueue mq, final ReadOffsetType type) {
case READ_FROM_STORE: {
try {
long brokerOffset = this.fetchConsumeOffsetFromBroker(mq);
AtomicLong offset = new AtomicLong(brokerOffset);
this.updateOffset(mq, offset.get(), false);
this.updateOffset(mq, brokerOffset, false);
return brokerOffset;
}
// No offset in broker
Expand Down

0 comments on commit 70480a1

Please sign in to comment.