From: Christopher Date: Sun, 8 Mar 2020 05:15:27 +0000 (-0600) Subject: don't wait for quorum to accept batch requests X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=111e20c361464c7ba1e6251d996158e7e3f90791;p=cluster_kv.git don't wait for quorum to accept batch requests --- diff --git a/lib/cluster_kv/ring.ex b/lib/cluster_kv/ring.ex index 92f7bc3..d66db48 100644 --- a/lib/cluster_kv/ring.ex +++ b/lib/cluster_kv/ring.ex @@ -296,7 +296,7 @@ defmodule ClusterKV.Ring do {:ok, %SL{sl | data: %Ring{data | ring: ring}}, [{:next_event, :internal, :node_down}]} end - def handle_info({:handle_batch, batch}, @ready, %SL{data: %Ring{db: db}} = sl) do + def handle_info({:handle_batch, batch}, _, %SL{data: %Ring{db: db}} = sl) do Logger.info("Handling Batch") DB.batch(db, batch) {:ok, sl, []}