This commit is contained in:
crusader 2018-04-12 21:42:42 +09:00
parent a0d3ff158a
commit c2137ebb50

View File

@ -66,7 +66,6 @@ func (s *ProbeServlets) Destroy(serverCtx server.ServerCtx) {
func (s *ProbeServlets) Handshake(servletCtx server.ServletCtx, ctx *fasthttp.RequestCtx) (*fasthttp.ResponseHeader, error) { func (s *ProbeServlets) Handshake(servletCtx server.ServletCtx, ctx *fasthttp.RequestCtx) (*fasthttp.ResponseHeader, error) {
bMethod := ctx.Request.Header.Peek(ocpc.HTTPRequestHeaderKey_Probe_Method) bMethod := ctx.Request.Header.Peek(ocpc.HTTPRequestHeaderKey_Probe_Method)
if nil == bMethod { if nil == bMethod {
return nil, fmt.Errorf("Unexpected probe method: %v", 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() grpcCTX := context.Background()
r, err := grpc.Exec(grpcCTX, "ProbeService.readByProbeKey", probeKey) r, err := grpc.Exec(grpcCTX, "ProbeService.readByProbeKey", probeKey)
if nil != err { if nil != err {
return nil, fmt.Errorf("grpc call Error: %s", err.Error()) return nil, fmt.Errorf("grpc call Error: %s", err.Error())
} }
@ -152,7 +150,6 @@ func (s *ProbeServlets) handleSubscribe(serverCtx server.ServerCtx, subscribeCha
} }
} }
} }
} }
} }
} }