mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
优化rpc垃圾回收
This commit is contained in:
@@ -210,4 +210,7 @@ func (slf *Service) RegEventReciverFunc(eventType event.EventType,reciver event.
|
||||
|
||||
func (slf *Service) UnRegEventReciverFun(eventType event.EventType,reciver event.IEventHandler){
|
||||
slf.eventProcessor.UnRegEventReciverFun(eventType,reciver)
|
||||
}
|
||||
func (slf *Service) IsSingleCoroutine() bool {
|
||||
return slf.gorouterNum == 1
|
||||
}
|
||||
Reference in New Issue
Block a user