Removed useless commits
This commit is contained in:
parent
74b9d3a197
commit
c14ee9ca04
@ -39,7 +39,10 @@
|
|||||||
<artifactId>tomcat-embed-jasper</artifactId>
|
<artifactId>tomcat-embed-jasper</artifactId>
|
||||||
<version>7.0.59</version>
|
<version>7.0.59</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>${project.groupId}</groupId>
|
||||||
|
<artifactId>nacos-naming</artifactId>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>nacos-istio</artifactId>
|
<artifactId>nacos-istio</artifactId>
|
||||||
|
@ -21,7 +21,6 @@ import com.alibaba.fastjson.JSONObject;
|
|||||||
import com.alibaba.nacos.api.common.Constants;
|
import com.alibaba.nacos.api.common.Constants;
|
||||||
import com.alibaba.nacos.api.exception.NacosException;
|
import com.alibaba.nacos.api.exception.NacosException;
|
||||||
import com.alibaba.nacos.api.naming.utils.NamingUtils;
|
import com.alibaba.nacos.api.naming.utils.NamingUtils;
|
||||||
import com.alibaba.nacos.naming.boot.SpringContext;
|
|
||||||
import com.alibaba.nacos.naming.cluster.ServerListManager;
|
import com.alibaba.nacos.naming.cluster.ServerListManager;
|
||||||
import com.alibaba.nacos.naming.cluster.servers.Server;
|
import com.alibaba.nacos.naming.cluster.servers.Server;
|
||||||
import com.alibaba.nacos.naming.consistency.ConsistencyService;
|
import com.alibaba.nacos.naming.consistency.ConsistencyService;
|
||||||
@ -30,7 +29,6 @@ import com.alibaba.nacos.naming.consistency.KeyBuilder;
|
|||||||
import com.alibaba.nacos.naming.consistency.RecordListener;
|
import com.alibaba.nacos.naming.consistency.RecordListener;
|
||||||
import com.alibaba.nacos.naming.consistency.persistent.raft.RaftPeer;
|
import com.alibaba.nacos.naming.consistency.persistent.raft.RaftPeer;
|
||||||
import com.alibaba.nacos.naming.consistency.persistent.raft.RaftPeerSet;
|
import com.alibaba.nacos.naming.consistency.persistent.raft.RaftPeerSet;
|
||||||
import com.alibaba.nacos.naming.core.event.ServiceEvent;
|
|
||||||
import com.alibaba.nacos.naming.misc.*;
|
import com.alibaba.nacos.naming.misc.*;
|
||||||
import com.alibaba.nacos.naming.push.PushService;
|
import com.alibaba.nacos.naming.push.PushService;
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
@ -158,7 +156,6 @@ public class ServiceManager implements RecordListener<Service> {
|
|||||||
} else {
|
} else {
|
||||||
putServiceAndInit(service);
|
putServiceAndInit(service);
|
||||||
}
|
}
|
||||||
SpringContext.getAppContext().publishEvent(new ServiceEvent(service));
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
Loggers.SRV_LOG.error("[NACOS-SERVICE] error while processing service update", e);
|
Loggers.SRV_LOG.error("[NACOS-SERVICE] error while processing service update", e);
|
||||||
}
|
}
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 1999-2018 Alibaba Group Holding Ltd.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
|
|
||||||
* the License. You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
|
|
||||||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations under the License.
|
|
||||||
*/
|
|
||||||
package com.alibaba.nacos.naming.core.event;
|
|
||||||
|
|
||||||
import com.alibaba.nacos.naming.core.Service;
|
|
||||||
import org.springframework.context.ApplicationEvent;
|
|
||||||
/**
|
|
||||||
* @author paderlol
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public class ServiceEvent extends ApplicationEvent {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a new ApplicationEvent.
|
|
||||||
*
|
|
||||||
* @param source the object on which the event initially occurred (never {@code null})
|
|
||||||
*/
|
|
||||||
public ServiceEvent(Service source) {
|
|
||||||
super(source);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user