     {:reply, :ok, project_id}
   end
 
-  def do_handle_cast({:reviewed, patch_id, reviewer}, project_id) do
+  def do_handle_cast({:reviewed, patch_id, reviewer}, _project_id) do
     case Repo.get(Patch.all(:awaiting_review), patch_id) do
       nil ->
         # Patch exists (otherwise, no ID), but is not awaiting review

        |> send_message([patch], :already_running_review)
      patch ->
        # Patch exists and is awaiting review
        # This will cause the PR to start after the patch's scheduled delay
        project = Repo.get!(Project, patch.project_id)
        repo_conn = get_repo_conn(project)
        case patch_preflight(repo_conn, patch) do
          :ok ->
	    IO.puts("Building...")
	    run(reviewer, patch, project, project_id, repo_conn)
          :waiting ->
	    # Not quite right. Need to add new message.
	    IO.puts("Should be waiting...")
	    send_message(repo_conn, [patch], {:preflight, :waiting})
	    prerun_poll({reviewer, patch, project, project_id, repo_conn})
          {:error, message} ->
            send_message(repo_conn, [patch], {:preflight, message})
        end

          reviewer: reviewer})
          |> Repo.insert!()
    if is_new_batch do
      put_incomplete_on_hold(repo_conn, batch)
    end
    poll_after_delay(project)
    # Maybe not needed because bors adds a commit referencing this.
