fix panic
This commit is contained in:
1 parent
3461f20510
commit
f3934e038e
4 files changed
+15
-1
No files matched your search
@@ -31,6 +31,11 @@ func NewProxy() *grpcProxy {
|
||||
}
|
||||
|
||||
func (p *grpcProxy) ProxyRequest(ctx *fasthttp.RequestCtx) {
|
||||
if p.client == nil {
|
||||
log.Error(log_code.ErrorClientGrpc, "client undefined")
|
||||
return
|
||||
}
|
||||
|
||||
currentTime := time.Now()
|
||||
|
||||
uri := string(ctx.RequestURI())
|
||||
|
||||
Reference in new issue
Block a user