修复接入阿里云RocketMq no route info for this topic 问题 (#3220)

Co-authored-by: hai.yu <hai.yu@snowballtech.com>
This commit is contained in:
Treeyh
2021-04-16 22:08:28 +08:00
committed by GitHub
co-authored by hai.yu
parent 25feab4af8
commit 91bddfeed6
@@ -120,7 +120,7 @@ public abstract class AbstractMQProducer implements CanalMQProducer {
}
String aliyunSecretKey = PropertiesUtils.getProperty(properties, CanalConstants.CANAL_ALIYUN_SECRET_KEY);
if (!StringUtils.isEmpty(aliyunSecretKey)) {
mqProperties.setAliyunAccessKey(aliyunSecretKey);
mqProperties.setAliyunSecretKey(aliyunSecretKey);
}
String aliyunUid = PropertiesUtils.getProperty(properties, CanalConstants.CANAL_ALIYUN_UID);
if (!StringUtils.isEmpty(aliyunUid)) {