You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by al...@apache.org on 2024/09/27 08:37:43 UTC

(dubbo-samples) branch master updated: same host run provider and consumer lead to qos (#1183)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git


The following commit(s) were added to refs/heads/master by this push:
     new 532e4793f same host run provider and consumer lead to qos (#1183)
532e4793f is described below

commit 532e4793f2385932ad43e542307a61c060d405de
Author: Ash Andrew <zj...@163.com>
AuthorDate: Fri Sep 27 16:37:38 2024 +0800

    same host run provider and consumer lead to qos (#1183)
    
    conflict
---
 .../src/main/java/org/apache/dubbo/samples/client/Application.java  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/1-basic/dubbo-samples-api/src/main/java/org/apache/dubbo/samples/client/Application.java b/1-basic/dubbo-samples-api/src/main/java/org/apache/dubbo/samples/client/Application.java
index 28354bccd..338258299 100644
--- a/1-basic/dubbo-samples-api/src/main/java/org/apache/dubbo/samples/client/Application.java
+++ b/1-basic/dubbo-samples-api/src/main/java/org/apache/dubbo/samples/client/Application.java
@@ -21,6 +21,7 @@ import java.io.IOException;
 
 import org.apache.dubbo.config.ReferenceConfig;
 import org.apache.dubbo.config.bootstrap.DubboBootstrap;
+import org.apache.dubbo.config.bootstrap.builders.ApplicationBuilder;
 import org.apache.dubbo.config.bootstrap.builders.ReferenceBuilder;
 import org.apache.dubbo.samples.api.GreetingsService;
 
@@ -31,7 +32,10 @@ public class Application {
                 .interfaceClass(GreetingsService.class)
                 .url("tri://localhost:50052")
                 .build();
-        DubboBootstrap.getInstance().reference(reference).start();
+
+        DubboBootstrap.getInstance()
+                .application(ApplicationBuilder.newBuilder().qosPort(22223).build())
+                .reference(reference).start();
         GreetingsService service = reference.get();
 
         String message = service.sayHi("dubbo");


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org