优化函数命名

This commit is contained in:
boyce
2021-04-29 17:33:13 +08:00
parent a60ad1cccf
commit 6757eedc48
2 changed files with 4 additions and 4 deletions

View File

@@ -237,13 +237,13 @@ func (s *Service) OnRpcEvent(ev event.IEvent){
}
}
func (s *Service) RegisterRpcListener (rpcEventLister rpc.IRpcListener) {
func (s *Service) RegRpcListener(rpcEventLister rpc.IRpcListener) {
s.rpcEventLister = rpcEventLister
s.RegEventReceiverFunc(event.Sys_Event_Rpc_Event,s.GetEventHandler(),s.OnRpcEvent)
RegRpcEventFun(s.GetName())
}
func (s *Service) UnRegisterRpcListener (rpcLister rpc.IRpcListener) {
func (s *Service) UnRegRpcListener(rpcLister rpc.IRpcListener) {
s.UnRegEventReceiverFunc(event.Sys_Event_Rpc_Event,s.GetEventHandler())
RegRpcEventFun(s.GetName())
}