Skip to content

Commit

Permalink
修复错误的状态码
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jan 12, 2024
1 parent cbab334 commit 5781db3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions saveTraceContextConsumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ func uploadTrace(lstTraceContext any) error {

apiRsp := core.NewApiResponseByReader[any](rsp.Body)
if apiRsp.StatusCode != 200 {
return fmt.Errorf("上传链路记录到FOPS失败(%v):%s", rsp.StatusCode, apiRsp.StatusMessage)
return fmt.Errorf("上传链路记录到FOPS失败(%v):%s", apiRsp.StatusCode, apiRsp.StatusMessage)
}

return err
}

0 comments on commit 5781db3

Please sign in to comment.