Skip to content

Commit

Permalink
Revert "[ISSUE #7686] The bornTime is not set when using the popMessa…
Browse files Browse the repository at this point in the history
…ge API i…" (#8331)

This reverts commit 4bb4d78.
  • Loading branch information
drpmma committed Jun 26, 2024
1 parent a89ebe3 commit b31e0ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ public CompletableFuture<PopResult> popMessage(
requestHeader.setExp(subscriptionData.getSubString());
requestHeader.setOrder(fifo);
requestHeader.setAttemptId(attemptId);
requestHeader.setBornTime(System.currentTimeMillis());

future = this.serviceManager.getMessageService().popMessage(
ctx,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ public CompletableFuture<Void> endTransactionOneway(ProxyContext ctx, String bro
@Override
public CompletableFuture<PopResult> popMessage(ProxyContext ctx, AddressableMessageQueue messageQueue,
PopMessageRequestHeader requestHeader, long timeoutMillis) {
requestHeader.setBornTime(System.currentTimeMillis());
RemotingCommand request = LocalRemotingCommand.createRequestCommand(RequestCode.POP_MESSAGE, requestHeader, ctx.getLanguage());
CompletableFuture<RemotingCommand> future = new CompletableFuture<>();
SimpleChannel channel = channelManager.createInvocationChannel(ctx);
Expand Down

0 comments on commit b31e0ce

Please sign in to comment.