diff --git a/index/store/metrics/writer.go b/index/store/metrics/writer.go index 1c648f1f..8d982f6c 100644 --- a/index/store/metrics/writer.go +++ b/index/store/metrics/writer.go @@ -24,7 +24,7 @@ func (w *Writer) NewBatch() store.KVBatch { } func (w *Writer) NewBatchEx(options store.KVBatchOptions) ([]byte, store.KVBatch, error) { - buf, b, err := w.o.NewBatchEx(options) + buf, b, err := w.o.NewBatchEx(options) if err != nil { return nil, nil, err } diff --git a/mapping_index.go b/mapping_index.go index 45c91ace..26e9f441 100644 --- a/mapping_index.go +++ b/mapping_index.go @@ -363,7 +363,7 @@ func (im *IndexMapping) UnmarshalJSON(data []byte) error { } func (im *IndexMapping) determineType(data interface{}) string { - // first see if the object implements Identifier + // first see if the object implements Classifier classifier, ok := data.(Classifier) if ok { return classifier.Type()