diff --git a/document/document.go b/document/document.go index ed36b127..c37585c6 100644 --- a/document/document.go +++ b/document/document.go @@ -20,7 +20,6 @@ type Document struct { ID string `json:"id"` Fields []Field `json:"fields"` CompositeFields []*CompositeField - Number uint64 `json:"-"` } func NewDocument(id string) *Document { diff --git a/index/upsidedown/upsidedown.go b/index/upsidedown/upsidedown.go index a8ef538e..1243375b 100644 --- a/index/upsidedown/upsidedown.go +++ b/index/upsidedown/upsidedown.go @@ -293,7 +293,7 @@ func (udc *UpsideDownCouch) batchRows(writer store.KVWriter, addRowsAll [][]Upsi } func (udc *UpsideDownCouch) Open() (err error) { - //acquire the write mutex for the duratin of Open() + // acquire the write mutex for the duration of Open() udc.writeMutex.Lock() defer udc.writeMutex.Unlock()