]> Entropealabs - cluster_kv.git/commitdiff
don't wait for quorum to accept batch requests
authorChristopher <chris@entropealabs.com>
Sun, 8 Mar 2020 05:15:27 +0000 (23:15 -0600)
committerChristopher <chris@entropealabs.com>
Sun, 8 Mar 2020 05:15:27 +0000 (23:15 -0600)
lib/cluster_kv/ring.ex

index 92f7bc3fa17d0bdef3618e743b62847289396e18..d66db4879f85584cb3b9dd1f3b103b9c904bb941 100644 (file)
@@ -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, []}