Skip to content

Commit

Permalink
fix:修复监控数据上报无法清理数据问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed Jul 15, 2024
1 parent f997c9f commit 50e74b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/quickstart/consumer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (svr *PolarisConsumer) runWebServer() {
},
}
ret.SetDelay(delay)
ret.SetRetCode(int32(resp.StatusCode))
ret.SetRetCode(int32(http.StatusInternalServerError))
if err := svr.consumer.UpdateServiceCallResult(ret); err != nil {
log.Printf("do report service call result : %+v", err)
}
Expand Down
1 change: 1 addition & 0 deletions examples/ratelimit/consumer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func (svr *PolarisConsumer) runWebServer() {
RetStatus: model.RetFail,
},
}
ret.SetRetCode(int32(http.StatusInternalServerError))
ret.SetDelay(delay)
if err := svr.consumer.UpdateServiceCallResult(ret); err != nil {
log.Printf("do report service call result : %+v", err)
Expand Down

0 comments on commit 50e74b5

Please sign in to comment.