lib/batch_loader/executor_proxy.rb in batch-loader-1.4.0 vs lib/batch_loader/executor_proxy.rb in batch-loader-1.4.1
- old
+ new
@@ -16,10 +16,10 @@
def add(item:)
items_to_load << item
end
def list_items
- items_to_load.to_a
+ items_to_load.to_a.freeze
end
def delete(items:)
global_executor.items_by_block[@block_hash_key] = items_to_load - items
end