]> Entropealabs - cluster_kv.git/commitdiff
add batch logic back, not the issue
authorChristopher <chris@entropealabs.com>
Sun, 8 Mar 2020 20:56:55 +0000 (15:56 -0500)
committerChristopher <chris@entropealabs.com>
Sun, 8 Mar 2020 20:56:55 +0000 (15:56 -0500)
lib/cluster_kv/db.ex

index a512987723ce5ab8efede5637cd097b6c594dec3..c9a966b75385686e5941df682e9cc114b4cf108c 100644 (file)
@@ -80,7 +80,7 @@ defmodule ClusterKV.DB do
     {:noreply, %DB{state | batch: batch, last_batch: lb}}
   end
 
-  defp handle_next_batch_chunk(db, batch, _chunk, _last_batch, fun) do
+  defp handle_next_batch_chunk(db, batch, chunk, last_batch, fun) do
     batch
     |> Enum.slice(last_batch, chunk)
     |> Enum.each(fn {k, v} ->