Remove not needed translationSyncer from holder. (#152)

This commit is contained in:
Kuba Podgórski 2020-03-05 00:19:58 +01:00 committed by GitHub
parent 78327904ff
commit 53c486fce0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

2
api.go
View file

@ -1434,7 +1434,7 @@ func (api *API) GetTranslateEntryReader(ctx context.Context, offsets TranslateOf
for fieldName, offset := range indexMap.Fields {
field := index.Field(fieldName)
if field == nil {
return nil, ErrIndexNotFound
return nil, ErrFieldNotFound
}
r, err := field.TranslateStore().EntryReader(ctx, uint64(offset))

View file

@ -233,9 +233,7 @@ func (h *Holder) Open() error {
h.opened.Close()
// Since the holder is just opening, this is not so much a reset,
// as it is an initial setting of the transation sync process.
return h.translationSyncer.Reset()
return nil
}
// checkForeignIndex is a check before applying a foreign