From: Christopher Date: Sun, 8 Mar 2020 04:57:40 +0000 (-0600) Subject: just insert X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=13ee1dc328f6bc7a9330765604bfc35d4a599f36;p=cluster_kv.git just insert --- diff --git a/lib/cluster_kv/db.ex b/lib/cluster_kv/db.ex index ca8eae5..e1fba76 100644 --- a/lib/cluster_kv/db.ex +++ b/lib/cluster_kv/db.ex @@ -110,7 +110,7 @@ defmodule ClusterKV.DB do [{_, val} = old] when is_list(val) -> new = fun.(old, value) - 1 = :ets.insert(db, new) + :ets.insert(db, new) [_] -> :ets.insert(db, {key, [value]})