Skip to content

Commit a50c055

Browse files
author
Sheldon Warkentin
committed
One more try
1 parent 893cb36 commit a50c055

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

server/main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

146147
func main() {

0 commit comments

Comments
 (0)