Skip to content

Commit 4b79622

Browse files
committed
add license and revert demo changes
1 parent 2484877 commit 4b79622

File tree

3 files changed

+17
-6
lines changed
  • dubbo-common/src/main/java/org/apache/dubbo/common/threadpool/manager
  • dubbo-demo/dubbo-demo-xml

3 files changed

+17
-6
lines changed

dubbo-common/src/main/java/org/apache/dubbo/common/threadpool/manager/Ring.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
117
package org.apache.dubbo.common.threadpool.manager;
218

319
import java.util.Collections;

dubbo-demo/dubbo-demo-xml/dubbo-demo-xml-consumer/src/main/resources/spring/dubbo-consumer.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727

2828
<!-- generate proxy for the remote service, then demoService can be used in the same way as the
2929
local regular interface -->
30-
<dubbo:reference timeout="600000" id="demoService" check="false" interface="org.apache.dubbo.demo.DemoService"/>
30+
<dubbo:reference id="demoService" check="false" interface="org.apache.dubbo.demo.DemoService"/>
3131

3232
</beans>

dubbo-demo/dubbo-demo-xml/dubbo-demo-xml-provider/src/main/java/org/apache/dubbo/demo/provider/DemoServiceImpl.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ public class DemoServiceImpl implements DemoService {
3030
@Override
3131
public String sayHello(String name) {
3232
logger.info("Hello " + name + ", request from consumer: " + RpcContext.getContext().getRemoteAddress());
33-
try {
34-
Thread.sleep(10000);
35-
} catch (InterruptedException e) {
36-
e.printStackTrace();
37-
}
3833
return "Hello " + name + ", response from provider: " + RpcContext.getContext().getLocalAddress();
3934
}
4035

0 commit comments

Comments
 (0)