Skip to content

Commit

Permalink
fix: fixes test for Logflare.Google.CloudResourceManager
Browse files Browse the repository at this point in the history
  • Loading branch information
chasers committed Oct 21, 2024
1 parent ad3f7fa commit e0876fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/logflare/google/resource_manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ defmodule Logflare.Google.CloudResourceManager do
alias Logflare.User
alias Logflare.TeamUsers
alias Logflare.Billing
alias Logflare.Utils.Tasks

def list_projects() do
conn = GenUtils.get_conn()
Expand All @@ -32,7 +33,7 @@ defmodule Logflare.Google.CloudResourceManager do
def set_iam_policy(opts \\ [async: true])

def set_iam_policy(async: true) do
Task.Supervisor.start_child(Logflare.TaskSupervisor, fn -> set_iam_policy(async: false) end)
Tasks.start_child(fn -> set_iam_policy(async: false) end)
end

def set_iam_policy(async: false) do
Expand Down

0 comments on commit e0876fc

Please sign in to comment.