This commit is contained in:
crusader 2018-05-03 15:30:12 +09:00
parent 990219ff5f
commit f74046c08a

View File

@ -26,6 +26,13 @@ type ProbeService struct {
}
func (s *ProbeService) InitService() error {
if nil == s.RPCWriteChan {
return fmt.Errorf("RPCWriteChan is not valid")
}
if nil == s.ClientCodec {
return fmt.Errorf("ClientCodec is not valid")
}
return nil
}