From c2137ebb50dcff11d7941fb5351f2b7e824b9459 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 12 Apr 2018 21:42:42 +0900 Subject: [PATCH] ing --- servlet/probe-servlet.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/servlet/probe-servlet.go b/servlet/probe-servlet.go index 0b38779..47f06ab 100644 --- a/servlet/probe-servlet.go +++ b/servlet/probe-servlet.go @@ -66,7 +66,6 @@ func (s *ProbeServlets) Destroy(serverCtx server.ServerCtx) { func (s *ProbeServlets) Handshake(servletCtx server.ServletCtx, ctx *fasthttp.RequestCtx) (*fasthttp.ResponseHeader, error) { bMethod := ctx.Request.Header.Peek(ocpc.HTTPRequestHeaderKey_Probe_Method) - if nil == bMethod { return nil, fmt.Errorf("Unexpected probe method: %v", bMethod) } @@ -88,7 +87,6 @@ func (s *ProbeServlets) Handshake(servletCtx server.ServletCtx, ctx *fasthttp.Re grpcCTX := context.Background() r, err := grpc.Exec(grpcCTX, "ProbeService.readByProbeKey", probeKey) - if nil != err { return nil, fmt.Errorf("grpc call Error: %s", err.Error()) } @@ -152,7 +150,6 @@ func (s *ProbeServlets) handleSubscribe(serverCtx server.ServerCtx, subscribeCha } } } - } } }