Skip to content

Commit 15af63e

Browse files
committed
[ROCKETMQ-153][HOTFIX] Fetch name server address dynamically.
1 parent 3fe7535 commit 15af63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public void start() throws MQClientException {
223223
this.serviceState = ServiceState.START_FAILED;
224224
// If not specified,looking address from name server
225225
if (null == this.clientConfig.getNamesrvAddr()) {
226-
this.clientConfig.setNamesrvAddr(this.mQClientAPIImpl.fetchNameServerAddr());
226+
this.mQClientAPIImpl.fetchNameServerAddr();
227227
}
228228
// Start request-response channel
229229
this.mQClientAPIImpl.start();

0 commit comments

Comments
 (0)