fix: adminTrace show any errors when server is shutdown. (#10370)

This commit is contained in:
飞雪无情 2020-08-29 01:04:54 +08:00 committed by GitHub
parent e730da1438
commit 2d96940826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,6 +95,7 @@ func (adm AdminClient) ServiceTrace(ctx context.Context, allTrace, errTrace bool
resp, err := adm.executeMethod(ctx, http.MethodGet, reqData)
if err != nil {
closeResponse(resp)
traceInfoCh <- ServiceTraceInfo{Err: err}
return
}