服务发现配置的使用说明

This commit is contained in:
boyce
2021-04-29 18:10:36 +08:00
parent 6757eedc48
commit ea4f17f22c
4 changed files with 53 additions and 9 deletions

View File

@@ -231,9 +231,9 @@ func (s *Service) OnStart(){
func (s *Service) OnRpcEvent(ev event.IEvent){
event := ev.(*RpcEventData)
if event.IsConnect {
s.rpcEventLister.OnRpcConnected(event.NodeId)
s.rpcEventLister.OnNodeConnected(event.NodeId)
}else{
s.rpcEventLister.OnRpcDisconnect(event.NodeId)
s.rpcEventLister.OnNodeDisconnect(event.NodeId)
}
}