Skip to content

Commit

Permalink
same host run provider and consumer lead to qos (#1183)
Browse files Browse the repository at this point in the history
conflict
  • Loading branch information
ptxl authored Sep 27, 2024
1 parent f0e69a0 commit 532e479
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

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;

Expand All @@ -31,7 +32,10 @@ public static void main(String[] args) throws IOException {
.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");
Expand Down

0 comments on commit 532e479

Please sign in to comment.