Skip to content

Commit

Permalink
Add aliases to server
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziosestito committed Oct 13, 2022
1 parent 668fd95 commit 0b4c8e9
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions lib/wanda/execution/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ defmodule Wanda.Execution.Server do

use GenServer, restart: :transient

alias Wanda.Execution.{Evaluation, Gathering, State, Target}
alias Wanda.Messaging
alias Wanda.Execution.{
Evaluation,
Gathering,
Result,
State,
Target
}

alias Wanda.{
Messaging,
Results
}

require Logger

Expand Down Expand Up @@ -137,8 +147,8 @@ defmodule Wanda.Execution.Server do
end
end

defp store_and_publish_execution_result(%Wanda.Execution.Result{} = result) do
Wanda.Results.create_execution_result(result)
defp store_and_publish_execution_result(%Result{} = result) do
Results.create_execution_result(result)

execution_completed = Messaging.Mapper.to_execution_completed(result)
:ok = Messaging.publish("results", execution_completed)
Expand Down

0 comments on commit 0b4c8e9

Please sign in to comment.