From 05c09d10f3542b46ec7195d3dd3fd71bd363cc15 Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Sun, 21 Jan 2024 19:48:43 +0000 Subject: [PATCH] fix comments --- lib/paxos.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/paxos.ex b/lib/paxos.ex index 464fb98..2a5030c 100644 --- a/lib/paxos.ex +++ b/lib/paxos.ex @@ -225,7 +225,7 @@ defmodule Paxos do prepare(st, inst) end) - # Handles a proposal from the parent process + # Handles a proposal message from the parent process {:propose, inst, value, pid_to_inform, action} -> log("#{state.name} - Propose #{inspect(inst)} with action #{inspect(action)}") @@ -320,7 +320,7 @@ defmodule Paxos do state end - # Handles a nack + # Handles a nack message {:nack, inst, ballot} -> log("#{state.name} - nack #{inspect(inst)} #{inspect(ballot)}") @@ -348,7 +348,7 @@ defmodule Paxos do state end - # Handles an abort + # Handles an abort message {:rb_deliver, _proc, {:abort, inst, _}} -> cond do has_finished(state, inst) -> @@ -421,7 +421,7 @@ defmodule Paxos do end end - # Handles a accept + # Handles an accept message # Sends out accept when a decide when a quoeom is met {:accepted, inst, ballot} -> log("#{state.name} - accepted #{inspect(inst)} #{inspect(ballot)}")