RestProtocol will be failed to export. (#2965)

* [REST] make the model init before export

* add line return to ActiveLimitFilter for checkstyle rule
This commit is contained in:
jefflv 2018-12-14 22:43:34 +08:00 committed by Ian Luo
parent f5be817c00
commit 31de87008a
2 changed files with 2 additions and 1 deletions

View File

@ -310,9 +310,9 @@ public class ServiceConfig<T> extends AbstractServiceConfig {
if (path == null || path.length() == 0) {
path = interfaceName;
}
doExportUrls();
ProviderModel providerModel = new ProviderModel(getUniqueServiceName(), ref, interfaceClass);
ApplicationModel.initProviderModel(getUniqueServiceName(), providerModel);
doExportUrls();
}
private void checkRef() {

View File

@ -25,6 +25,7 @@ import org.apache.dubbo.rpc.Invoker;
import org.apache.dubbo.rpc.Result;
import org.apache.dubbo.rpc.RpcException;
import org.apache.dubbo.rpc.RpcStatus;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;