File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,7 +125,9 @@ func (s *server) DeleteUser(ctx context.Context, in *pb.DeleteUserRequest) (*pb.
125125 return nil , status .Error (codes .NotFound , fmt .Sprintf ("Could not find user with ID - %d" , in .GetId ()))
126126 }
127127
128- return & pb.DeleteUserResult {Count : count }, nil
128+ return nil , status .Error (codes .Internal , "Failed to delete user anyway" )
129+
130+ // return &pb.DeleteUserResult{Count: count}, nil
129131}
130132
131133//
@@ -138,9 +140,8 @@ func (s *server) CheckReservedName(ctx context.Context, in *pb.CheckReservedName
138140 if err != nil {
139141 return nil , status .Error (codes .Internal , fmt .Sprintf ("Failed to check reserved name - %s" , err .Error ()))
140142 }
141- return nil , status .Error (codes .Internal , fmt .Sprintf ("Failed to check reserved name anyway - %s" , out ))
142143
143- // return &pb.CheckReservedNameResult{Reserved: fmt.Sprintf("%s", out)}, nil
144+ return & pb.CheckReservedNameResult {Reserved : fmt .Sprintf ("%s" , out )}, nil
144145}
145146
146147func main () {
You can’t perform that action at this time.
0 commit comments