Use closure funs to specify transformer functions
diff --git a/src/couch_mrview_updater.erl b/src/couch_mrview_updater.erl
index 1346707..0745c2a 100644
--- a/src/couch_mrview_updater.erl
+++ b/src/couch_mrview_updater.erl
@@ -472,6 +472,10 @@
maybe_notify(State, View, KVs, ToRem) ->
- Updated = [Key || {{Key, _}, _} <- KVs],
- Removed = [Key || {Key, _DocId} <- ToRem],
+ Updated = fun() ->
+ [Key || {{Key, _}, _} <- KVs]
+ end,
+ Removed = fun() ->
+ [Key || {Key, _DocId} <- ToRem]
+ end,
couch_index_plugin:index_update(State, View, Updated, Removed).