mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-24 16:04:00 +08:00
Merge pull request #2731 from panzhi33/develop
[ISSUE #2730]fix Multiple instances in the same application share MQClientInstance
This commit is contained in:
@@ -94,7 +94,7 @@ public class ClientConfig {
|
||||
|
||||
public void changeInstanceNameToPID() {
|
||||
if (this.instanceName.equals("DEFAULT")) {
|
||||
this.instanceName = String.valueOf(UtilAll.getPid());
|
||||
this.instanceName = UtilAll.getPid()+ "#" + System.nanoTime();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user