Index: impl/memory/datastore_index.go |
diff --git a/impl/memory/datastore_index.go b/impl/memory/datastore_index.go |
index 015b5c57faa74223636b1575f8e2efdb23ac6003..db79a3b5ecb03c68d90d71c5ce497d9cc67cac3d 100644 |
--- a/impl/memory/datastore_index.go |
+++ b/impl/memory/datastore_index.go |
@@ -224,7 +224,7 @@ func mergeIndexes(ns string, store, oldIdx, newIdx *memStore) { |
}) |
} |
-func addIndex(store *memStore, ns string, compIdx []*ds.IndexDefinition) { |
+func addIndexes(store *memStore, ns string, compIdx []*ds.IndexDefinition) { |
normalized := make([]*ds.IndexDefinition, len(compIdx)) |
idxColl := store.SetCollection("idx", nil) |
for i, idx := range compIdx { |