You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2018/06/11 03:19:50 UTC

[incubator-servicecomb-java-chassis] 03/04: [SCB-653]remove cse prefix & change timeout to a smaller value

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

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git

commit 9694b447f1103990adc66762f733e31105ebc5cb
Author: liubao <ba...@huawei.com>
AuthorDate: Mon Jun 11 10:00:18 2018 +0800

    [SCB-653]remove cse prefix & change timeout to a smaller value
---
 demo/demo-jaxrs/jaxrs-client/src/main/resources/microservice.yaml     | 4 ++--
 .../apache/servicecomb/demo/jaxrs/server/RequestClientTimeOut.java    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/demo/demo-jaxrs/jaxrs-client/src/main/resources/microservice.yaml b/demo/demo-jaxrs/jaxrs-client/src/main/resources/microservice.yaml
index 3903d2d..1559f53 100644
--- a/demo/demo-jaxrs/jaxrs-client/src/main/resources/microservice.yaml
+++ b/demo/demo-jaxrs/jaxrs-client/src/main/resources/microservice.yaml
@@ -32,7 +32,7 @@ servicecomb:
       name: mycustomrule
     retryEnabled: true
     retryHandler: mycustomhandler
-cse:
+
   request:
     timeout: 30000
     jaxrs:
@@ -42,4 +42,4 @@ cse:
         sayHello:
           timeout: 30000
         add:
-          timeout: 2000
\ No newline at end of file
+          timeout: 1000
\ No newline at end of file
diff --git a/demo/demo-jaxrs/jaxrs-server/src/main/java/org/apache/servicecomb/demo/jaxrs/server/RequestClientTimeOut.java b/demo/demo-jaxrs/jaxrs-server/src/main/java/org/apache/servicecomb/demo/jaxrs/server/RequestClientTimeOut.java
index 76c98ed..3871651 100644
--- a/demo/demo-jaxrs/jaxrs-server/src/main/java/org/apache/servicecomb/demo/jaxrs/server/RequestClientTimeOut.java
+++ b/demo/demo-jaxrs/jaxrs-server/src/main/java/org/apache/servicecomb/demo/jaxrs/server/RequestClientTimeOut.java
@@ -35,7 +35,7 @@ public class RequestClientTimeOut {
   @Path("/add")
   @POST
   public int add(@FormParam("a") int a, @FormParam("b") int b) throws InterruptedException {
-    Thread.sleep(3000);
+    Thread.sleep(2000);
     return a + b;
   }
 

-- 
To stop receiving notification emails like this one, please contact
liubao@apache.org.