Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
islamaliev committed Jun 3, 2024
1 parent c874780 commit bbf4941
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/db/collection_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ func (c *collection) GetIndexes(ctx context.Context) ([]client.IndexDescription,

// checkExistingFieldsAndAdjustRelFieldNames checks if the fields in the index description
// exist in the collection schema.
// If a field is a relation, it will be adjusted to relation id field name, a.k.a. `field_name + _id`.
// If a field is a relation, it will be adjusted to relation id field name, a.k.a. `field_name + _id`.
func (c *collection) checkExistingFieldsAndAdjustRelFieldNames(
fields []client.IndexedFieldDescription,
) error {
Expand Down
10 changes: 6 additions & 4 deletions internal/planner/type_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,15 +592,17 @@ func (j *primaryObjectsFetcher) fetchPrimaryDocs() ([]core.Doc, error) {
j.primaryScan.initFetcher(immutable.None[string](), indexOnRelation)

docs, err := j.collectDocs(0)
if err != nil {
return nil, err
}

j.primaryScan.fetcher.Close()

j.primaryScan.fetcher = oldFetcher

err = j.primaryScan.fetcher.Close()
if err != nil {
return nil, err
}

j.primaryScan.fetcher = oldFetcher

return docs, nil
}

Expand Down

0 comments on commit bbf4941

Please sign in to comment.