Skip to content

Commit

Permalink
fix: fix checkstatus response code (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlycore authored Nov 14, 2023
1 parent 0042f2c commit 90880ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pitr/cli/internal/pkg/agent-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ func (as *agentServer) CheckStatus(in *model.HealthCheckIn) error {
return xerr.NewUnknownErr(url, in, nil, err)
}

if out.Code != 0 {
return xerr.NewAgentServerErr(out.Code, out.Msg)
}

return nil
}

Expand Down

0 comments on commit 90880ed

Please sign in to comment.