Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
Signed-off-by: bufferflies <[email protected]>
  • Loading branch information
bufferflies committed Aug 12, 2022
1 parent 70b413f commit 186ca2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/grpc_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,10 @@ func (s *GrpcServer) validateRequest(header *pdpb.RequestHeader) error {

func (s *GrpcServer) header() *pdpb.ResponseHeader {
if s.clusterID == 0 {
return s.wrapErrorToHeader(pdpb.ErrorType_NOT_BOOTSTRAPPED, "cluster id is not ready")
return s.errorHeader(&pdpb.Error{
Type: pdpb.ErrorType_NOT_BOOTSTRAPPED,
Message: "cluster id is not ready",
})
}
return &pdpb.ResponseHeader{ClusterId: s.clusterID}
}
Expand Down

0 comments on commit 186ca2c

Please sign in to comment.