From f74046c08aa9460505282e1e6d6c95667d11c024 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 3 May 2018 15:30:12 +0900 Subject: [PATCH] ing --- service/ProbeService.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/service/ProbeService.go b/service/ProbeService.go index 1cce807..0b01a14 100644 --- a/service/ProbeService.go +++ b/service/ProbeService.go @@ -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 }