Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
response code 200 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
MI-cool committed Jul 13, 2023
1 parent 14fe29a commit 16dd4bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions v2/pb/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ func (c *ClientDetectionResponse) GetResponseType() string {
func NewServerCheckResponse() *ServerCheckResponse {
return &ServerCheckResponse{
Response: &Response{
ResultCode: 0,
ErrorCode: 0,
ResultCode: int(model.Response_Success.Code),
ErrorCode: int(model.ErrorCode_Success.Code),
Success: true,
Message: "success",
RequestId: "",
Expand Down Expand Up @@ -178,8 +178,8 @@ func (c *NotifySubscriberResponse) GetResponseType() string {
func NewHealthCheckResponse() *HealthCheckResponse {
return &HealthCheckResponse{
Response: &Response{
ResultCode: 0,
ErrorCode: 0,
ResultCode: int(model.Response_Success.Code),
ErrorCode: int(model.ErrorCode_Success.Code),
Success: true,
Message: "success",
RequestId: "",
Expand Down
2 changes: 1 addition & 1 deletion v2/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (h *NacosV2Server) handleServiceListRequest(ctx context.Context, req nacosp
}
resp := &nacospb.ServiceListResponse{
Response: &nacospb.Response{
ResultCode: int(model.ErrorCode_Success.Code),
ResultCode: int(model.Response_Success.Code),
Success: true,
Message: "success",
},
Expand Down

0 comments on commit 16dd4bd

Please sign in to comment.