From d1628d1430b93fff29b43c06db896b610c46fd7e Mon Sep 17 00:00:00 2001 From: Christopher Date: Sun, 8 Mar 2020 16:30:32 -0500 Subject: [PATCH] make sure batch is instantiated as list --- lib/cluster_kv/db.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cluster_kv/db.ex b/lib/cluster_kv/db.ex index e0d096b..37b7eaf 100644 --- a/lib/cluster_kv/db.ex +++ b/lib/cluster_kv/db.ex @@ -6,7 +6,7 @@ defmodule ClusterKV.DB do @db_options [:set] - defstruct [:db, :batch, :batch_chunk, :batch_fun, last_batch: 0] + defstruct [:db, :batch_chunk, :batch_fun, last_batch: 0, batch: []] @type t :: %__MODULE__{ db: :ets.tid() | atom(), -- 2.45.3