ing
This commit is contained in:
parent
a0d3ff158a
commit
c2137ebb50
|
@ -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
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user