Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bughue committed Feb 20, 2024
1 parent d31fc70 commit fc71d14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ private RootContext() {
*/
public static final String KEY_XID = "TX_XID";

public static final String KEY_BRANCHID = "TX_BRANCHID";

/**
* The constant HIDDEN_KEY_XID for sofa-rpc integration.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class SeataMQProducer extends TransactionMQProducer {
private static final Logger LOGGER = LoggerFactory.getLogger(SeataMQProducer.class);

public static String PROPERTY_SEATA_XID = RootContext.KEY_XID;
public static String PROPERTY_SEATA_BRANCHID = "TX_BRANCHID";
public static String PROPERTY_SEATA_BRANCHID = RootContext.KEY_BRANCHID;
private TransactionListener transactionListener;

SeataMQProducer(final String producerGroup) {
Expand Down Expand Up @@ -86,7 +86,7 @@ public LocalTransactionState checkLocalTransaction(MessageExt msg) {
};
}


@Override
public SendResult send(Message msg) throws MQClientException, MQBrokerException, RemotingException, InterruptedException {
return send(msg, this.defaultMQProducerImpl.getDefaultMQProducer().getSendMsgTimeout());
}
Expand Down

0 comments on commit fc71d14

Please sign in to comment.