···664664665665 # Request
666666667667+ defp on_request(%State{} = state, _command, _from) when state.status != :normal do
668668+ # Ignore requests during view change
669669+ # TODO: maybe we should send an error to the client here? Currently it will simply timeout
670670+ state
671671+ end
672672+667673 defp on_request(%State{} = state, command, from) do
668674 assert state.role == :primary
675675+ assert state.status == :normal
669676 SimLogger.debug "Coordinator (id=#{state.id}): received command #{inspect(command)}"
670677671678 op_number = state.op_number + 1