Skip to content

Commit

Permalink
clean up formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Jan 29, 2025
1 parent 9b6cf5e commit 51d966a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
4 changes: 3 additions & 1 deletion lib/uplink/data/provisioner.ex
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ defmodule Uplink.Data.Provisioner do

client = LXD.client()

Formation.Lxd.Alpine.provision_postgresql(client, project: state.project)
Formation.Lxd.Alpine.provision_postgresql(client,
project: state.project
)

Process.send_after(self(), {:bootstrap, state.mode, env}, 5_000)

Expand Down
8 changes: 6 additions & 2 deletions lib/uplink/packages/instance/bootstrap.ex
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ defmodule Uplink.Packages.Instance.Bootstrap do
"actor_id" => actor_id
}
}) do
Cache.put_new({:install, install_id, "completed"}, [], ttl: :timer.hours(24))
Cache.put_new({:install, install_id, "completed"}, [],
ttl: :timer.hours(24)
)

Cache.put_new({:install, install_id, "executing"}, [], ttl: :timer.hours(24))
Cache.put_new({:install, install_id, "executing"}, [],
ttl: :timer.hours(24)
)

%Actor{} = actor = Repo.get(Actor, actor_id)

Expand Down
8 changes: 6 additions & 2 deletions lib/uplink/packages/instance/upgrade.ex
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@ defmodule Uplink.Packages.Instance.Upgrade do
}
} = job
) do
Cache.put_new({:install, install_id, "completed"}, [], ttl: :timer.hours(24))
Cache.put_new({:install, install_id, "completed"}, [],
ttl: :timer.hours(24)
)

Cache.put_new({:install, install_id, "executing"}, [], ttl: :timer.hours(24))
Cache.put_new({:install, install_id, "executing"}, [],
ttl: :timer.hours(24)
)

%Actor{} = actor = Repo.get(Actor, actor_id)

Expand Down
5 changes: 4 additions & 1 deletion lib/uplink/packages/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ defmodule Uplink.Packages.Metadata do
package
|> cast(params, [:slug])
|> validate_required([:slug])
|> cast_embed(:organization, required: true, with: &organization_changeset/2)
|> cast_embed(:organization,
required: true,
with: &organization_changeset/2
)
|> cast_embed(:credential,
required: true,
with: &package_credential_changeset/2
Expand Down

0 comments on commit 51d966a

Please sign in to comment.