This commit is contained in:
nkorange 2019-03-22 16:58:46 +08:00
parent 9b24b46f7a
commit da757f156c

View File

@ -54,9 +54,6 @@ public class Service extends com.alibaba.nacos.api.naming.pojo.Service implement
private static final String SERVICE_NAME_SYNTAX = "[0-9a-zA-Z@\\.:_-]+"; private static final String SERVICE_NAME_SYNTAX = "[0-9a-zA-Z@\\.:_-]+";
@JSONField(serialize = false)
private ClientBeatProcessor clientBeatProcessor = new ClientBeatProcessor();
@JSONField(serialize = false) @JSONField(serialize = false)
private ClientBeatCheckTask clientBeatCheckTask = new ClientBeatCheckTask(this); private ClientBeatCheckTask clientBeatCheckTask = new ClientBeatCheckTask(this);
@ -104,6 +101,7 @@ public class Service extends com.alibaba.nacos.api.naming.pojo.Service implement
} }
public void processClientBeat(final RsInfo rsInfo) { public void processClientBeat(final RsInfo rsInfo) {
ClientBeatProcessor clientBeatProcessor = new ClientBeatProcessor();
clientBeatProcessor.setService(this); clientBeatProcessor.setService(this);
clientBeatProcessor.setRsInfo(rsInfo); clientBeatProcessor.setRsInfo(rsInfo);
HealthCheckReactor.scheduleNow(clientBeatProcessor); HealthCheckReactor.scheduleNow(clientBeatProcessor);