Skip to content

Commit

Permalink
fix incorrect method name (streamnative#346)
Browse files Browse the repository at this point in the history
Co-authored-by: 高章敏 <[email protected]>
  • Loading branch information
gaozhangmin and 高章敏 authored Jun 8, 2021
1 parent b304b04 commit 70d7ab1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ protected void doCommitOffsetToPulsar(
boolean success = false;
while (running) {
try {
metadataReader.commitCursorToOffset(offset);
metadataReader.commitOffsetToCursor(offset);
success = true;
break;
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public void setupCursor(Map<TopicRange, MessageId> offset) {
setupCursor(offset, true);
}

public void commitCursorToOffset(Map<TopicRange, MessageId> offset) {
public void commitOffsetToCursor(Map<TopicRange, MessageId> offset) {
for (Map.Entry<TopicRange, MessageId> entry : offset.entrySet()) {
TopicRange tp = entry.getKey();
try {
Expand Down

0 comments on commit 70d7ab1

Please sign in to comment.